2026-06-14 16:08:18 -04:00
|
|
|
option(ENABLE_COMPARATORLIB_core
|
|
|
|
|
"Enable comparator lib core (libcoreComp.so)" ON)
|
2026-06-10 21:13:19 -04:00
|
|
|
|
2026-06-14 16:08:18 -04:00
|
|
|
if(ENABLE_COMPARATORLIB_core)
|
|
|
|
|
add_library(coreComp SHARED
|
|
|
|
|
coreComp.cpp
|
|
|
|
|
)
|
2026-06-10 21:13:19 -04:00
|
|
|
|
2026-06-14 16:08:18 -04:00
|
|
|
set_target_properties(coreComp PROPERTIES
|
|
|
|
|
VERSION ${PROJECT_VERSION}
|
|
|
|
|
SOVERSION ${PROJECT_VERSION_MAJOR}
|
|
|
|
|
)
|
2026-06-10 21:13:19 -04:00
|
|
|
|
2026-06-14 16:08:18 -04:00
|
|
|
target_include_directories(coreComp PUBLIC
|
|
|
|
|
${CMAKE_SOURCE_DIR}/include
|
|
|
|
|
${CMAKE_SOURCE_DIR}/smocore/include
|
|
|
|
|
)
|
2026-06-10 21:13:19 -04:00
|
|
|
|
2026-06-14 16:08:18 -04:00
|
|
|
target_link_libraries(coreComp PUBLIC
|
|
|
|
|
spinscale
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
install(TARGETS coreComp
|
|
|
|
|
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} NAMELINK_SKIP
|
|
|
|
|
)
|
|
|
|
|
endif()
|