-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
47 lines (39 loc) · 999 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
37
38
39
40
41
42
43
44
45
46
47
add_library(
ovis-input
include/ovis/input/key.hpp src/key.cpp
include/ovis/input/key_events.hpp src/key_events.cpp
include/ovis/input/text_input_event.hpp src/text_input_event.cpp
include/ovis/input/mouse_button.hpp src/mouse_button.cpp
include/ovis/input/mouse_events.hpp src/mouse_events.cpp
include/ovis/input/input_event_emitter.hpp src/input_event_emitter.cpp
)
add_library(ovis::input ALIAS ovis-input)
target_include_directories(
ovis-input
PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}/include
)
target_link_libraries(
ovis-input
PUBLIC
ovis::core
)
# if (OVIS_BUILD_TESTS)
# add_executable(
# ovis-input-test
# )
# target_link_libraries(
# ovis-input-test
# PRIVATE
# ovis::input
# ovis::test
# )
# if (OVIS_EMSCRIPTEN)
# add_test(
# ovis-input-test
# ${NODE_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/ovis-input-test.js
# )
# else ()
# add_test(ovis-input-test ovis-input-test)
# endif ()
# endif ()