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