Debian Codegraph @

unit_tests/CMakeLists.txt

raw
1 project(Tests)
2
3 # include_directories(../Catch/include)
4 # include_directories(../src)
5
6 file(GLOB sources *.cpp)
7
8 add_executable(tests ${sources})
9 add_test(unittest tests)
10
11 find_package( ZLIB REQUIRED )
12 if ( ZLIB_FOUND )
13 include_directories( ${ZLIB_INCLUDE_DIRS} )
14 target_link_libraries( tests ${ZLIB_LIBRARIES} )
15 endif( ZLIB_FOUND )
16
17 target_link_libraries(tests kallisto_core)
18
19 find_package( HDF5 REQUIRED )
20 if(HDF5_FOUND)
21 include_directories( ${HDF5_INCLUDE_DIR} )
22 target_link_libraries( tests ${HDF5_LIBRARIES} )
23 else()
24 message(FATAL_ERROR "HDF5 not found. Required to output files")
25 endif()