Browse Source

add scc as package option to cmake

develop
Eyck Jentzsch 1 month ago
parent
commit
2d4d921502
1 changed files with 7 additions and 3 deletions
  1. +7
    -3
      CMakeLists.txt

+ 7
- 3
CMakeLists.txt View File

@ -26,15 +26,19 @@ set(LIB_SOURCES
src/encoderdecoder.cpp
)
add_library(dbt-core ${LIB_SOURCES})
add_library(dbt-core STATIC ${LIB_SOURCES})
if(WITH_LLVM)
target_compile_definitions(dbt-core PUBLIC ${LLVM_DEFINITIONS})
target_include_directories(dbt-core PRIVATE ${LLVM_INCLUDE_DIRS})
endif()
target_include_directories(dbt-core PUBLIC ${PROJECT_SOURCE_DIR}/incl)
target_include_directories(dbt-core PUBLIC ${Boost_INCLUDE_DIRS})
target_link_libraries(dbt-core PRIVATE scc-util)
target_link_libraries(dbt-core PUBLIC CONAN_PKG::tcc CONAN_PKG::fmt ${Boost_LIBRARIES} ${CMAKE_DL_LIBS})
if(TARGET CONAN_PKG::scc)
target_link_libraries(dbt-core PUBLIC CONAN_PKG::scc)
else()
target_link_libraries(dbt-core PUBLIC scc-util)
endif()
target_link_libraries(dbt-core PUBLIC CONAN_PKG::tcc CONAN_PKG::fmt ${CMAKE_DL_LIBS})
set_target_properties(dbt-core PROPERTIES
VERSION ${PROJECT_VERSION}
FRAMEWORK FALSE

Loading…
Cancel
Save