27 lines
544 B
CMake
27 lines
544 B
CMake
option(ENABLE_COMPARATORLIB_core
|
|
"Enable comparator lib core (libcoreComp.so)" ON)
|
|
|
|
if(ENABLE_COMPARATORLIB_core)
|
|
add_library(coreComp SHARED
|
|
coreComp.cpp
|
|
)
|
|
|
|
set_target_properties(coreComp PROPERTIES
|
|
VERSION ${PROJECT_VERSION}
|
|
SOVERSION ${PROJECT_VERSION_MAJOR}
|
|
)
|
|
|
|
target_include_directories(coreComp PUBLIC
|
|
${CMAKE_SOURCE_DIR}/include
|
|
${CMAKE_SOURCE_DIR}/smocore/include
|
|
)
|
|
|
|
target_link_libraries(coreComp PUBLIC
|
|
spinscale
|
|
)
|
|
|
|
install(TARGETS coreComp
|
|
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} NAMELINK_SKIP
|
|
)
|
|
endif()
|