Fossil SCM

fossil-scm / compat / zlib / contrib / iostream3 / test / find_package_test.cmake.in
Source Blame History 24 lines
6ea30fb… florian 1 cmake_minimum_required(VERSION 3.12...3.31)
6ea30fb… florian 2
6ea30fb… florian 3 project(
6ea30fb… florian 4 iostream_find_package
6ea30fb… florian 5 LANGUAGES CXX
6ea30fb… florian 6 VERSION @iostreamV3_VERSION@)
6ea30fb… florian 7
6ea30fb… florian 8 option(ZLIB_IOSTREAM_BUILD_SHARED "" @ZLIB_IOSTREAM_BUILD_SHARED@)
6ea30fb… florian 9 option(ZLIB_IOSTREAM_BUILD_STATIC "" @ZLIB_IOSTREAM_BUILD_STATIC@)
6ea30fb… florian 10
6ea30fb… florian 11 set(IOSTREAM_SRCS
6ea30fb… florian 12 @iostreamV3_SOURCE_DIR@/test.cc)
6ea30fb… florian 13
6ea30fb… florian 14 if(ZLIB_IOSTREAM_BUILD_SHARED)
6ea30fb… florian 15 find_package(iostreamv3 REQUIRED COMPONENTS shared CONFIG)
6ea30fb… florian 16 add_executable(test_example ${IOSTREAM_SRCS})
6ea30fb… florian 17 target_link_libraries(test_example IOSTREAMV3::IOSTREAMV3)
6ea30fb… florian 18 endif(ZLIB_IOSTREAM_BUILD_SHARED)
6ea30fb… florian 19
6ea30fb… florian 20 if(ZLIB_IOSTREAM_BUILD_STATIC)
6ea30fb… florian 21 find_package(iostreamv3 REQUIRED COMPONENTS static CONFIG)
6ea30fb… florian 22 add_executable(test_example_static ${IOSTREAM_SRCS})
6ea30fb… florian 23 target_link_libraries(test_example_static IOSTREAMV3::IOSTREAMV3STATIC)
6ea30fb… florian 24 endif(ZLIB_IOSTREAM_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