/
CMakeLists.txt
26 lines (22 loc) · 993 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#
# This file needs to be updated whenever a new test is added.
#
# all tests can be run from the build directory with `make test`
# Trivial example using gtest and gmock. Can be directly added here.
# To only run this single test, run from inside the build directory (cd test/unit && ./example)
add_executable(example example.cpp)
add_dependencies(example icc_profiles)
target_link_libraries(example gtest gmock_main)
add_test(NAME example_unit_test COMMAND example)
# Configuration parsing and tests
# To only run this single test, run from inside the build directory '(cd test/unit && ./configuration/configuration)'
add_subdirectory(configuration)
add_test(NAME configuration_unit_test
WORKING_DIRECTORY
COMMAND configuration)
# SipiImage tests
# To only run this single test, run from inside the build directory '(cd test/unit && ./sipiimage/sipiimage)'
add_subdirectory(sipiimage)
add_test(NAME sipiimage_unit_test
WORKING_DIRECTORY
COMMAND sipiimage)