ComparatorLib:core: Add menu option to conditionally enable
This commit is contained in:
@@ -1,21 +1,26 @@
|
||||
add_library(coreComp SHARED
|
||||
coreComp.cpp
|
||||
)
|
||||
option(ENABLE_COMPARATORLIB_core
|
||||
"Enable comparator lib core (libcoreComp.so)" ON)
|
||||
|
||||
set_target_properties(coreComp PROPERTIES
|
||||
VERSION ${PROJECT_VERSION}
|
||||
SOVERSION ${PROJECT_VERSION_MAJOR}
|
||||
)
|
||||
if(ENABLE_COMPARATORLIB_core)
|
||||
add_library(coreComp SHARED
|
||||
coreComp.cpp
|
||||
)
|
||||
|
||||
target_include_directories(coreComp PUBLIC
|
||||
${CMAKE_SOURCE_DIR}/include
|
||||
${CMAKE_SOURCE_DIR}/smocore/include
|
||||
)
|
||||
set_target_properties(coreComp PROPERTIES
|
||||
VERSION ${PROJECT_VERSION}
|
||||
SOVERSION ${PROJECT_VERSION_MAJOR}
|
||||
)
|
||||
|
||||
target_link_libraries(coreComp PUBLIC
|
||||
spinscale
|
||||
)
|
||||
target_include_directories(coreComp PUBLIC
|
||||
${CMAKE_SOURCE_DIR}/include
|
||||
${CMAKE_SOURCE_DIR}/smocore/include
|
||||
)
|
||||
|
||||
install(TARGETS coreComp
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} NAMELINK_SKIP
|
||||
)
|
||||
target_link_libraries(coreComp PUBLIC
|
||||
spinscale
|
||||
)
|
||||
|
||||
install(TARGETS coreComp
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} NAMELINK_SKIP
|
||||
)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user