CMakeFiles: Tweaks.

This commit is contained in:
BearOso 2024-04-30 14:39:07 -05:00
parent 2bb7723220
commit f6f9cf09e1
2 changed files with 5 additions and 1 deletions

View File

@ -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)

View File

@ -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)