Debian Codegraph @

compat/zlib/contrib/iostream3/test/find_package_no_components_test.cmake.in

raw
1 cmake_minimum_required(VERSION 3.12...3.31)
2
3 project(
4 iostream_find_package_no_components
5 LANGUAGES CXX
6 VERSION @iostreamV3_VERSION@)
7
8 option(ZLIB_IOSTREAM3_BUILD_SHARED "" @ZLIB_IOSTREAM3_BUILD_SHARED@)
9 option(ZLIB_IOSTREAM3_BUILD_STATIC "" @ZLIB_IOSTREAM3_BUILD_STATIC@)
10
11 find_package(iostreamv3 REQUIRED CONFIG)
12
13 set(IOSTREAM_SRCS
14 @iostreamV3_SOURCE_DIR@/test.cc)
15
16 if(ZLIB_IOSTREAM3_BUILD_SHARED)
17 add_executable(test_example ${IOSTREAM_SRCS})
18 target_link_libraries(test_example IOSTREAMV3::IOSTREAMV3)
19 endif(ZLIB_IOSTREAM3_BUILD_SHARED)
20
21 if(ZLIB_IOSTREAM3_BUILD_STATIC)
22 add_executable(test_example_static ${IOSTREAM_SRCS})
23 target_link_libraries(test_example_static IOSTREAMV3::IOSTREAMV3STATIC)
24 endif(ZLIB_IOSTREAM3_BUILD_STATIC)