diff options
author | Joseph Hunkeler <jhunkeler@users.noreply.github.com> | 2024-12-11 10:28:47 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-11 10:28:47 -0500 |
commit | 3078519379ffcdc45811431336547d7df31a24ee (patch) | |
tree | 2b5be989ca839bd97f55f40605e23d7019397be7 /CMakeLists.txt | |
parent | 456c5a481a7dabb53434a696488ac6eecb962d5b (diff) | |
parent | 4fd92ec6b203d6b94b9e9f9531fd60a65736e810 (diff) | |
download | stasis-3078519379ffcdc45811431336547d7df31a24ee.tar.gz |
Merge pull request #75 from jhunkeler/delivery-lib
Move delivery_*.c sources into their own library
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 6558205..d21a553 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,6 +24,11 @@ elseif (CMAKE_C_COMPILER_ID STREQUAL "MSVC") add_compile_options(${win_cflags}) endif() +set(core_INCLUDE ${CMAKE_CURRENT_SOURCE_DIR}/src/lib/core/include) +set(delivery_INCLUDE ${CMAKE_CURRENT_SOURCE_DIR}/src/lib/delivery/include) +set(SYSCONFDIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_SYSCONFDIR}") +configure_file(${PROJECT_SOURCE_DIR}/include/config.h.in ${CMAKE_CURRENT_BINARY_DIR}/include/config.h @ONLY) +include_directories(${PROJECT_BINARY_DIR}/include) add_subdirectory(src) # Toggle extremely verbose output @@ -52,8 +57,6 @@ else() message(CHECK_PASS "no") endif() -set(SYSCONFDIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_SYSCONFDIR}") -configure_file(${CMAKE_CURRENT_SOURCE_DIR}/include/config.h.in ${CMAKE_CURRENT_BINARY_DIR}/include/config.h @ONLY) install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/stasis_pandoc.css DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}/stasis) install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/stasis.ini DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}/stasis) install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/mission DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}/stasis) |