diff --git a/gtk/CMakeLists.txt b/gtk/CMakeLists.txt index e0302903..36201b71 100644 --- a/gtk/CMakeLists.txt +++ b/gtk/CMakeLists.txt @@ -40,7 +40,7 @@ add_compile_definitions(HAVE_LIBPNG SNES9XLOCALEDIR=\"${LOCALEDIR}\") set(INCLUDES ../apu/bapu ../ src) 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(DEFINES) diff --git a/qt/CMakeLists.txt b/qt/CMakeLists.txt index 1338abfe..09090c2f 100644 --- a/qt/CMakeLists.txt +++ b/qt/CMakeLists.txt @@ -1,6 +1,8 @@ cmake_minimum_required(VERSION 3.20) project(snes9x-qt VERSION 1.62) +include(GNUInstallDirs) + set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED True) 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_include_directories(snes9x-qt PRIVATE "../" ${INCLUDES}) +install(TARGETS snes9x-qt) +install(FILES ../data/cheats.bml DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/snes9x)