-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathCMakeLists.txt
43 lines (35 loc) · 1.42 KB
/
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
cmake_minimum_required(VERSION 3.9)
project(dcmo5)
find_package(SDL REQUIRED)
find_package(SDL_ttf REQUIRED)
include_directories(source)
include_directories(${SDL_INCLUDE_DIR} ${SDL_TTF_INCLUDE_DIRS})
set(SOURCES_FILE
${PROJECT_SOURCE_DIR}/source/dc6809emul.c
${PROJECT_SOURCE_DIR}/source/dcmo5boutons.c
${PROJECT_SOURCE_DIR}/source/dcmo5devices.c
${PROJECT_SOURCE_DIR}/source/dcmo5dialog.c
${PROJECT_SOURCE_DIR}/source/dcmo5emulation.c
${PROJECT_SOURCE_DIR}/source/dcmo5keyb.c
${PROJECT_SOURCE_DIR}/source/dcmo5main.c
${PROJECT_SOURCE_DIR}/source/dcmo5options.c
${PROJECT_SOURCE_DIR}/source/dcmo5video.c
)
option(DEBUG_SCANCODE "To enable a print of the scancode on the standard output, usefull when crafting a layout." OFF)
if(DEBUG_SCANCODE)
add_definitions(-DDEBUG_SCANCODE)
endif(DEBUG_SCANCODE)
option(USE_TYPEMATRIX_BEPO_LAYOUT "To enable a layout crafted for typematrix keyboard with bepo layout." OFF)
if(USE_TYPEMATRIX_BEPO_LAYOUT)
add_definitions(-DUSE_TYPEMATRIX_BEPO_LAYOUT)
endif(USE_TYPEMATRIX_BEPO_LAYOUT)
add_executable(dcmo5 ${SOURCES_FILE})
target_link_libraries(dcmo5 ${SDL_LIBRARY} ${SDL_TTF_LIBRARIES})
install(TARGETS dcmo5 DESTINATION bin)
# add the uninstall support
configure_file(
"${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
@ONLY)
add_custom_target(uninstall
"${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake")