Fossil SCM

fossil-scm / compat / zlib / contrib / puff / test / add_subdirectory_test.cmake.in
Source Blame History 25 lines
6ea30fb… florian 1 cmake_minimum_required(VERSION 3.12...3.31)
6ea30fb… florian 2
6ea30fb… florian 3 project(
6ea30fb… florian 4 zlib_puff_add_subdirectory
6ea30fb… florian 5 LANGUAGES C
6ea30fb… florian 6 VERSION @puff_VERSION@)
6ea30fb… florian 7
6ea30fb… florian 8 option(ZLIB_PUFF_BUILD_TESTING "" OFF)
6ea30fb… florian 9 option(ZLIB_PUFF_BUILD_SHARED "" @ZLIB_PUFF_BUILD_SHARED@)
6ea30fb… florian 10 option(ZLIB_PUFF_BUILD_STATIC "" @ZLIB_PUFF_BUILD_STATIC@)
6ea30fb… florian 11
6ea30fb… florian 12 add_subdirectory(@puff_SOURCE_DIR@ ${CMAKE_CURRENT_BINARY_DIR}/puff)
6ea30fb… florian 13
6ea30fb… florian 14 set(PUFF_SRCS
6ea30fb… florian 15 @puff_SOURCE_DIR@/pufftest.c)
6ea30fb… florian 16
6ea30fb… florian 17 if(ZLIB_PUFF_BUILD_SHARED)
6ea30fb… florian 18 add_executable(test_example ${PUFF_SRCS})
6ea30fb… florian 19 target_link_libraries(test_example PUFF::PUFF)
6ea30fb… florian 20 endif(ZLIB_PUFF_BUILD_SHARED)
6ea30fb… florian 21
6ea30fb… florian 22 if(ZLIB_PUFF_BUILD_STATIC)
6ea30fb… florian 23 add_executable(test_example_static ${PUFF_SRCS})
6ea30fb… florian 24 target_link_libraries(test_example_static PUFF::PUFFSTATIC)
6ea30fb… florian 25 endif(ZLIB_PUFF_BUILD_STATIC)

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button