blob: 6c8a570f990990a26594c774924258e3d8888cde (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
cmake_minimum_required(VERSION 3.12...3.31)
project(
iostream_find_package
LANGUAGES CXX
VERSION @iostreamV3_VERSION@)
option(ZLIB_IOSTREAM_BUILD_SHARED "" @ZLIB_IOSTREAM_BUILD_SHARED@)
option(ZLIB_IOSTREAM_BUILD_STATIC "" @ZLIB_IOSTREAM_BUILD_STATIC@)
find_package(iostreamv3 REQUIRED COMPONENTS wrongCONFIG)
set(IOSTREAM_SRCS
@iostreamV3_SOURCE_DIR@/test.cc)
if(ZLIB_IOSTREAM_BUILD_SHARED)
add_executable(test_example ${IOSTREAM_SRCS})
target_link_libraries(test_example IOSTREAMV3::IOSTREAMV3)
endif(ZLIB_IOSTREAM_BUILD_SHARED)
if(ZLIB_IOSTREAM_BUILD_STATIC)
add_executable(test_example_static ${PUFF_SRCS})
target_link_libraries(test_example_static IOSTREAMV3::IOSTREAMV3STATIC)
endif(ZLIB_IOSTREAM_BUILD_STATIC)
|