Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports
Path: blob/main/emulators/emulationstation/files/patch-CMakeLists.txt
18157 views
1
--- CMakeLists.txt.orig 2020-11-01 21:39:18 UTC
2
+++ CMakeLists.txt
3
@@ -16,6 +16,10 @@ endif()
4
5
project(emulationstation-all)
6
7
+# program name to be used as a reference when looking up resources
8
+set(AppDataName "EmulationStation" CACHE STRING "Internal program name passed to compiler")
9
+add_definitions(-DAPPDATANAME="${AppDataName}")
10
+
11
#-------------------------------------------------------------------------------
12
#add local find scripts to CMAKE path
13
LIST(APPEND CMAKE_MODULE_PATH
14
@@ -244,6 +248,9 @@ set(dir ${CMAKE_CURRENT_SOURCE_DIR})
15
set(EXECUTABLE_OUTPUT_PATH ${dir} CACHE PATH "Build directory" FORCE)
16
set(LIBRARY_OUTPUT_PATH ${dir} CACHE PATH "Build directory" FORCE)
17
18
+# install rules for resources
19
+include(GNUInstallDirs)
20
+install(DIRECTORY resources DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/${AppDataName}/")
21
22
#-------------------------------------------------------------------------------
23
# add each component
24
25