-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
36 lines (24 loc) · 1.05 KB
/
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
27
28
29
30
31
32
33
34
35
36
if (CVD_TESTING)
cmake_minimum_required(VERSION 3.13)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
project(CVDiceTests)
add_executable(CVDiceTests
main.cpp
ResourceReader.cpp ResourceReader.h
LibCVDiceAnnotation/Chunk.Test.cpp
LibCVDiceAnnotation/JpegAnnotation.Test.cpp
CVDice/utils/algorithm.Test.cpp CVDice/utils/hsv.Test.cpp
CVDice/transformers/basicDiceSourceImages.Test.cpp)
target_link_libraries(CVDiceTests PRIVATE CVDiceBase LibCVDiceAnnotation)
if ("${CVD_USE_QT5}")
target_link_libraries(CVDiceTests PRIVATE CVDiceQT)
endif()
message(STATUS "Copying Testing Resources: ${TestResources}")
add_custom_target(CVDiceTests_Resources)
add_custom_command(TARGET CVDiceTests_Resources PRE_BUILD
COMMAND ${CMAKE_COMMAND} -E
copy_directory ${PROJECT_SOURCE_DIR}/res/ ${CMAKE_CURRENT_BINARY_DIR})
add_dependencies(CVDiceTests CVDiceTests_Resources)
endif ()