-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
35 lines (25 loc) · 921 Bytes
/
Copy pathCMakeLists.txt
File metadata and controls
35 lines (25 loc) · 921 Bytes
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
cmake_minimum_required (VERSION 2.8)
add_definitions (-std=c++14 -O0)
set (CMAKE_EXPORT_COMPILE_COMMANDS ON)
add_subdirectory (events)
add_library (ObjSDL
color_names.cc color.cc color.hh # color_names provides the values for the named colors
cursor.cc cursor.hh
clock.cc clock.hh
short_types.cc short_types.hh # header only
clipboard.cc clipboard.hh
geometry.hh geometry.cc # header only
version.cc version.hh
audio.cc audio.hh
keys.cc keys.hh
)
include (cmake/FindSDL2.cmake)
find_package (Boost COMPONENTS system REQUIRED)
find_package (SDL2 REQUIRED)
include_directories (${SDL2_INCLUDE_DIR})
include_directories (${Boost_INCLUDE_DIRS})
link_directories (${Boost_LIBRARY_DIRS})
target_link_libraries (ObjSDL ${Boost_SYSTEM_LIBRARY})
target_link_libraries (ObjSDL ${SDL2_LIBRARY})
target_link_libraries (ObjSDL ObjSDL_events)
# install (TARGETS ObjSDL DESTINATION lib)