VERY experimental Nintendo Switch 2 emulator
C++
CMakeLists: rename HEADS, improved comments
archshift403e4bf837c4
diff --git a/CMakeLists.txt b/CMakeLists.txtindex b4665640c2..76190c5e40 100644--- a/CMakeLists.txt+++ b/CMakeLists.txt@@ -3,8 +3,6 @@ cmake_minimum_required(VERSION 2.6)project(citra)SET(CMAKE_CXX_FLAGS "-std=c++11 -fpermissive")-SET(CMAKE_CXX_FLAGS_DEBUG "-std=c++11 -fpermissive")-SET(CMAKE_CXX_FLAGS_RELEASE "-std=c++11 -fpermissive")# silence some spamadd_definitions(-Wno-attributes)@@ -20,6 +18,7 @@ find_package(GLEW REQUIRED)find_package(OpenGL REQUIRED)pkg_search_module(GLFW REQUIRED glfw3)+# corefoundation is required only on OSXIF (APPLE)FIND_LIBRARY(COREFOUNDATION_LIBRARY CoreFoundation)SET(CMAKE_CXX_FLAGS "-stdlib=libc++")@@ -31,7 +30,7 @@ include_directories(${GLFW_INCLUDE_DIRS})include_directories(${OPENGL_INCLUDE_DIR})include_directories(${GLEW_INCLUDE_DIR})-#use pkg_search_module library dirs+# workaround for GLFW linking on OSXlink_directories(${GLFW_LIBRARY_DIRS})option(DISABLE_QT4 "Disable Qt4 GUI" OFF)diff --git a/src/citra/CMakeLists.txt b/src/citra/CMakeLists.txtindex 7787d6a72e..1ad607d767 100644--- a/src/citra/CMakeLists.txt+++ b/src/citra/CMakeLists.txt@@ -1,6 +1,6 @@set(SRCS citra.cppemu_window/emu_window_glfw.cpp)-set(HEADS citra.h+set(HEADERS citra.hresource.h)# NOTE: This is a workaround for CMake bug 0006976 (missing X11_xf86vmode_LIB variable)@@ -8,7 +8,7 @@ if (NOT X11_xf86vmode_LIB)set(X11_xv86vmode_LIB Xxf86vm)endif()-add_executable(citra ${SRCS} ${HEADS})+add_executable(citra ${SRCS} ${HEADERS})if (APPLE)target_link_libraries(citra core common video_core iconv pthread ${COREFOUNDATION_LIBRARY} ${OPENGL_LIBRARIES} ${GLEW_LIBRARY} ${GLFW_LIBRARIES})diff --git a/src/citra_qt/CMakeLists.txt b/src/citra_qt/CMakeLists.txtindex 9d983c0f0d..549f69217a 100644--- a/src/citra_qt/CMakeLists.txt+++ b/src/citra_qt/CMakeLists.txt@@ -8,7 +8,7 @@ set(SRCSmain.cppconfig/controller_config.cppconfig/controller_config_util.cpp)-set (HEADS+set (HEADERSbootmanager.hxxdebugger/callstack.hxxdebugger/disassembler.hxx@@ -49,7 +49,7 @@ qt4_wrap_cpp(MOC_SRCSinclude_directories(${CMAKE_CURRENT_BINARY_DIR})include_directories(./)-add_executable(citra-qt ${SRCS} ${HEADS} ${MOC_SRCS} ${UI_HDRS})+add_executable(citra-qt ${SRCS} ${HEADERS} ${MOC_SRCS} ${UI_HDRS})if (APPLE)target_link_libraries(citra-qt core common video_core qhexedit iconv ${COREFOUNDATION_LIBRARY} ${QT_LIBRARIES} ${GLEW_LIBRARY} ${OPENGL_LIBRARIES})else()diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txtindex 0027ae2b00..aae1833939 100644--- a/src/common/CMakeLists.txt+++ b/src/common/CMakeLists.txt@@ -19,7 +19,7 @@ set(SRCS break_points.cpptimer.cpputf8.cpp)-set(HEADS atomic.h+set(HEADERS atomic.hatomic_gcc.hatomic_win32.hbit_field.h@@ -58,4 +58,4 @@ set(HEADS atomic.htimer.hutf8.h)-add_library(common STATIC ${SRCS} ${HEADS})+add_library(common STATIC ${SRCS} ${HEADERS})diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txtindex ddf6bf79cd..14c598bf3d 100644--- a/src/core/CMakeLists.txt+++ b/src/core/CMakeLists.txt@@ -43,7 +43,7 @@ set(SRCS core.cpphw/lcd.cpphw/ndma.cpp)-set(HEADS core.h+set(HEADERS core.hcore_timing.hloader.hmem_map.h@@ -86,4 +86,4 @@ set(HEADS core.hhw/lcd.hhw/ndma.h)-add_library(core STATIC ${SRCS} ${HEADS})+add_library(core STATIC ${SRCS} ${HEADERS})diff --git a/src/video_core/CMakeLists.txt b/src/video_core/CMakeLists.txtindex 8d04d381cc..e43e6e1bb6 100644--- a/src/video_core/CMakeLists.txt+++ b/src/video_core/CMakeLists.txt@@ -2,9 +2,9 @@ set(SRCS video_core.cpputils.cpprenderer_opengl/renderer_opengl.cpp)-set(HEADS video_core.h+set(HEADERS video_core.hutils.hrenderer_base.hrenderer_opengl/renderer_opengl.h)-add_library(video_core STATIC ${SRCS} ${HEADS})+add_library(video_core STATIC ${SRCS} ${HEADERS})