-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathCMakeLists.txt
36 lines (27 loc) · 966 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
27
28
29
30
31
32
33
34
35
36
message(STATUS "Input Module: Mock")
set_directory_properties(PROPERTIES CORRADE_USE_PEDANTIC_FLAGS ON)
corrade_add_static_plugin(VisorInputMock ${CMAKE_CURRENT_BINARY_DIR}
VisorInputMock.conf
MockInputModulePlugin.cpp
MockInputStream.cpp
)
add_library(Visor::Input::Mock ALIAS VisorInputMock)
target_include_directories(VisorInputMock
INTERFACE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
)
target_link_libraries(VisorInputMock
PUBLIC
Visor::Core
)
set(VISOR_STATIC_PLUGINS ${VISOR_STATIC_PLUGINS} Visor::Input::Mock PARENT_SCOPE)
## TEST SUITE
add_executable(unit-tests-input-mock test_mock.cpp)
find_package(Catch2 REQUIRED)
target_link_libraries(unit-tests-input-mock
PRIVATE
Visor::Input::Mock
Catch2::Catch2WithMain)
add_test(NAME unit-tests-input-mock
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/src
COMMAND unit-tests-input-mock)