cmake_minimum_required(VERSION 2.8)
project(test_mod_camera)

add_executable(test_mod_camera_gui test_mod_camera_gui.cpp)
target_link_libraries(test_mod_camera_gui spcore)
target_link_libraries(test_mod_camera_gui testcommon)
target_link_libraries(test_mod_camera_gui ${wxWidgets_LIBRARIES})
target_link_libraries(test_mod_camera_gui nvwa)
target_link_libraries(test_mod_camera_gui spmod_camera)
add_test (NAME test_mod_camera_gui COMMAND $<TARGET_FILE:nvwa_loader> $<TARGET_FILE:test_mod_camera_gui>)

add_executable(test_mod_camera_viewer test_mod_camera_viewer.cpp)
target_link_libraries(test_mod_camera_viewer spcore)
target_link_libraries(test_mod_camera_viewer testcommon)
target_link_libraries(test_mod_camera_viewer ${wxWidgets_LIBRARIES})
target_link_libraries(test_mod_camera_viewer nvwa)
target_link_libraries(test_mod_camera_viewer spmod_camera)
add_test (NAME test_mod_camera_viewer COMMAND $<TARGET_FILE:nvwa_loader> $<TARGET_FILE:test_mod_camera_viewer>)

add_executable(test_mod_camera_rois test_mod_camera_rois.cpp)
target_link_libraries(test_mod_camera_rois spcore)
target_link_libraries(test_mod_camera_rois testcommon)
target_link_libraries(test_mod_camera_rois nvwa)
target_link_libraries(test_mod_camera_rois spmod_camera)
add_test (NAME test_mod_camera_rois COMMAND $<TARGET_FILE:nvwa_loader> $<TARGET_FILE:test_mod_camera_rois>)