forked from emileb/d3es-multithread
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
52 lines (44 loc) · 1.41 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
44
45
46
47
48
49
50
51
52
cmake_minimum_required(VERSION 3.19)
if(SAILFISHOS)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17")
endif()
project(sailfish-doom3es)
if(NOT SFOS_PACKAGE_NAME)
set(SFOS_PACKAGE_NAME ${CMAKE_PROJECT_NAME})
endif()
message("Configure imgui:")
add_subdirectory(${CMAKE_SOURCE_DIR}/imgui)
message("Configure DHEWM3:")
set(DHEWM3BINARY ${SFOS_PACKAGE_NAME})
# set(SAILFISHOS ON)
add_subdirectory(${CMAKE_SOURCE_DIR}/neo)
if(SAILFISHOS)
# AuroraOS/SailfishOS specific files and resources
add_custom_target(distfiles
SOURCES
rpm/sailfish-doom3es.spec
icons/86.png
icons/108.png
icons/128.png
icons/172.png
sailfish-doom3es.desktop.in
)
install(FILES ${SFOS_PACKAGE_NAME}.desktop
DESTINATION /usr/share/applications
)
install(FILES icons/86.png
DESTINATION /usr/share/icons/hicolor/86x86/apps RENAME ${SFOS_PACKAGE_NAME}.png
)
install(FILES icons/108.png
DESTINATION /usr/share/icons/hicolor/108x108/apps RENAME ${SFOS_PACKAGE_NAME}.png
)
install(FILES icons/128.png
DESTINATION /usr/share/icons/hicolor/128x128/apps RENAME ${SFOS_PACKAGE_NAME}.png
)
install(FILES icons/172.png
DESTINATION /usr/share/icons/hicolor/172x172/apps RENAME ${SFOS_PACKAGE_NAME}.png
)
install(DIRECTORY res
DESTINATION /usr/share/${SFOS_PACKAGE_NAME}
)
endif()