CMakeLists.txt 328 B

12345678910111213
  1. file(GLOB_RECURSE util_SRC *.cpp)
  2. list(REMOVE_ITEM util_SRC TestMain.cpp)
  3. add_library(util ${util_SRC})
  4. find_package( ZLIB )
  5. if (ZLIB_FOUND)
  6. include_directories( ${ZLIB_INCLUDE_DIRS} )
  7. target_link_libraries( util ${ZLIB_LIBRARIES} )
  8. add_definitions( -DZLIB_FOUND=${ZLIB_FOUND} )
  9. endif( ZLIB_FOUND )
  10. add_subdirectory(tests)