|
1
|
cmake_minimum_required(VERSION 3.12...3.31) |
|
2
|
|
|
3
|
project( |
|
4
|
blast_find_package |
|
5
|
LANGUAGES C |
|
6
|
VERSION @blast_VERSION@) |
|
7
|
|
|
8
|
option(ZLIB_BLAST_BUILD_SHARED "" @ZLIB_BLAST_BUILD_SHARED@) |
|
9
|
option(ZLIB_BLAST_BUILD_STATIC "" @ZLIB_BLAST_BUILD_STATIC@) |
|
10
|
option(ZLIB_BLAST_BUILD_TESTING "" @ZLIB_BLAST_BUILD_TESTING@) |
|
11
|
|
|
12
|
add_subdirectory(@blast_SOURCE_DIR@ ${CMAKE_CURRENT_BINARY_DIR}/blast) |
|
13
|
|
|
14
|
set(BLAST_SRCS |
|
15
|
@blast_SOURCE_DIR@/blast-test.c) |
|
16
|
|
|
17
|
if(ZLIB_BLAST_BUILD_SHARED) |
|
18
|
add_executable(test_example ${BLAST_SRCS}) |
|
19
|
target_link_libraries(test_example BLAST::BLAST) |
|
20
|
endif(ZLIB_BLAST_BUILD_SHARED) |
|
21
|
|
|
22
|
if(ZLIB_BLAST_BUILD_STATIC) |
|
23
|
add_executable(test_example_static ${BLAST_SRCS}) |
|
24
|
target_link_libraries(test_example_static BLAST::BLASTSTATIC) |
|
25
|
endif(ZLIB_BLAST_BUILD_STATIC) |
|
26
|
|