CMakeFiles: Tweaks.
This commit is contained in:
parent
2bb7723220
commit
f6f9cf09e1
@ -40,7 +40,7 @@ add_compile_definitions(HAVE_LIBPNG
|
|||||||
SNES9XLOCALEDIR=\"${LOCALEDIR}\")
|
SNES9XLOCALEDIR=\"${LOCALEDIR}\")
|
||||||
set(INCLUDES ../apu/bapu ../ src)
|
set(INCLUDES ../apu/bapu ../ src)
|
||||||
set(SOURCES)
|
set(SOURCES)
|
||||||
set(ARGS -Wall -Wno-unused-parameter -Wno-unused-variable -Wno-nullability-completeness)
|
set(ARGS -Wall -Wno-unused-parameter -Wno-unused-variable)
|
||||||
set(LIBS)
|
set(LIBS)
|
||||||
set(DEFINES)
|
set(DEFINES)
|
||||||
|
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
cmake_minimum_required(VERSION 3.20)
|
cmake_minimum_required(VERSION 3.20)
|
||||||
project(snes9x-qt VERSION 1.62)
|
project(snes9x-qt VERSION 1.62)
|
||||||
|
|
||||||
|
include(GNUInstallDirs)
|
||||||
|
|
||||||
set(CMAKE_CXX_STANDARD 17)
|
set(CMAKE_CXX_STANDARD 17)
|
||||||
set(CMAKE_CXX_STANDARD_REQUIRED True)
|
set(CMAKE_CXX_STANDARD_REQUIRED True)
|
||||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||||
@ -298,3 +300,5 @@ target_compile_definitions(snes9x-qt PRIVATE ${DEFINES})
|
|||||||
target_compile_options(snes9x-qt PRIVATE ${FLAGS})
|
target_compile_options(snes9x-qt PRIVATE ${FLAGS})
|
||||||
target_include_directories(snes9x-qt PRIVATE "../" ${INCLUDES})
|
target_include_directories(snes9x-qt PRIVATE "../" ${INCLUDES})
|
||||||
|
|
||||||
|
install(TARGETS snes9x-qt)
|
||||||
|
install(FILES ../data/cheats.bml DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/snes9x)
|
||||||
|
Loading…
Reference in New Issue
Block a user