CMakeLists.txt 316 B

123456789
  1. find_package(Check)
  2. include_directories(${CHECK_INCLUDE_DIRS})
  3. link_directories(${CHECK_LIBRARY_DIRS})
  4. add_executable(check_mode check_mode.c greatest.h)
  5. target_include_directories(check_mode PUBLIC include)
  6. target_link_libraries(check_mode PUBLIC libmegapixels check)
  7. add_test(NAME check_mode COMMAND check_mode)