Browse Source

update build system

master
Eyck Jentzsch 4 weeks ago
parent
commit
c7fb067c54
1 changed files with 8 additions and 2 deletions
  1. +8
    -2
      CMakeLists.txt

+ 8
- 2
CMakeLists.txt View File

@ -49,7 +49,8 @@ if(TARGET SystemC-CCI::SystemC-CCI)
endif()
find_package(Threads)
find_package(ZLIB)
find_package(Boost REQUIRED COMPONENTS date_time)
find_package(ZLIB REQUIRED)
find_package(${SystemCPackage} REQUIRED)
set(CLANG_FORMAT_EXCLUDE_PATTERNS "/spdlog/" "/json/" "jsoncpp.cpp" "sqlite3")
@ -133,11 +134,16 @@ endif()
add_library(scc ${LIB_SOURCES})
target_include_directories (scc PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/incl)
target_include_directories (scc PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src)
target_include_directories (scc PUBLIC ${Boost_INCLUDE_DIRS})
if(HAVE_GETENV)
target_compile_definitions(scc PUBLIC HAVE_GETENV)
endif()
if (ZLIB_FOUND)
target_include_directories(scc PUBLIC ${ZLIB_INCLUDE_DIRS})
target_link_libraries(scc PUBLIC ${ZLIB_LIBRARIES})
endif()
target_link_libraries(scc PUBLIC scc-util ${CMAKE_DL_LIBS})
target_link_libraries(scc PUBLIC ${Boost_LIBRARIES})
target_link_libraries(scc PUBLIC ${FMT_TARGET} ${SPDLOG_TARGET})
target_link_libraries(scc PUBLIC Threads::Threads)

Loading…
Cancel
Save