forked from allen-cell-animated/agave
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
26 lines (23 loc) · 917 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
add_executable(agave_test MACOSX_BUNDLE "${CMAKE_CURRENT_SOURCE_DIR}/test_main.cpp")
set_target_properties(agave_test PROPERTIES OUTPUT_NAME "agave_test")
set_target_properties(agave_test PROPERTIES MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
target_include_directories(agave_test PUBLIC
"${CMAKE_SOURCE_DIR}"
"${CMAKE_CURRENT_SOURCE_DIR}"
${GLM_INCLUDE_DIRS}
)
target_sources(agave_test PRIVATE
"${CMAKE_CURRENT_SOURCE_DIR}/test_histogram.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/test_main.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/test_timeLine.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/test_volumeDimensions.cpp"
)
target_link_libraries(agave_test
renderlib
Qt5::Widgets Qt5::Core Qt5::Gui Qt5::Network Qt5::WebSockets Qt5::Xml
)
add_custom_command(TARGET agave_test POST_BUILD
COMMAND agave_test
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/test
COMMENT "Running tests..."
)