1
0
Fork 0

CMakeLists: rename HEADS, improved comments

Changes for clarity of comments, removed redundant compiler flags.
This commit is contained in:
archshift 2014-05-19 15:19:36 -07:00
parent 71b8789803
commit 403e4bf837
6 changed files with 12 additions and 13 deletions

View File

@ -3,8 +3,6 @@ cmake_minimum_required(VERSION 2.6)
project(citra) project(citra)
SET(CMAKE_CXX_FLAGS "-std=c++11 -fpermissive") 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 spam # silence some spam
add_definitions(-Wno-attributes) add_definitions(-Wno-attributes)
@ -20,6 +18,7 @@ find_package(GLEW REQUIRED)
find_package(OpenGL REQUIRED) find_package(OpenGL REQUIRED)
pkg_search_module(GLFW REQUIRED glfw3) pkg_search_module(GLFW REQUIRED glfw3)
# corefoundation is required only on OSX
IF (APPLE) IF (APPLE)
FIND_LIBRARY(COREFOUNDATION_LIBRARY CoreFoundation) FIND_LIBRARY(COREFOUNDATION_LIBRARY CoreFoundation)
SET(CMAKE_CXX_FLAGS "-stdlib=libc++") SET(CMAKE_CXX_FLAGS "-stdlib=libc++")
@ -31,7 +30,7 @@ include_directories(${GLFW_INCLUDE_DIRS})
include_directories(${OPENGL_INCLUDE_DIR}) include_directories(${OPENGL_INCLUDE_DIR})
include_directories(${GLEW_INCLUDE_DIR}) include_directories(${GLEW_INCLUDE_DIR})
#use pkg_search_module library dirs # workaround for GLFW linking on OSX
link_directories(${GLFW_LIBRARY_DIRS}) link_directories(${GLFW_LIBRARY_DIRS})
option(DISABLE_QT4 "Disable Qt4 GUI" OFF) option(DISABLE_QT4 "Disable Qt4 GUI" OFF)

View File

@ -1,6 +1,6 @@
set(SRCS citra.cpp set(SRCS citra.cpp
emu_window/emu_window_glfw.cpp) emu_window/emu_window_glfw.cpp)
set(HEADS citra.h set(HEADERS citra.h
resource.h) resource.h)
# NOTE: This is a workaround for CMake bug 0006976 (missing X11_xf86vmode_LIB variable) # 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) set(X11_xv86vmode_LIB Xxf86vm)
endif() endif()
add_executable(citra ${SRCS} ${HEADS}) add_executable(citra ${SRCS} ${HEADERS})
if (APPLE) if (APPLE)
target_link_libraries(citra core common video_core iconv pthread ${COREFOUNDATION_LIBRARY} ${OPENGL_LIBRARIES} ${GLEW_LIBRARY} ${GLFW_LIBRARIES}) target_link_libraries(citra core common video_core iconv pthread ${COREFOUNDATION_LIBRARY} ${OPENGL_LIBRARIES} ${GLEW_LIBRARY} ${GLFW_LIBRARIES})

View File

@ -8,7 +8,7 @@ set(SRCS
main.cpp main.cpp
config/controller_config.cpp config/controller_config.cpp
config/controller_config_util.cpp) config/controller_config_util.cpp)
set (HEADS set (HEADERS
bootmanager.hxx bootmanager.hxx
debugger/callstack.hxx debugger/callstack.hxx
debugger/disassembler.hxx debugger/disassembler.hxx
@ -49,7 +49,7 @@ qt4_wrap_cpp(MOC_SRCS
include_directories(${CMAKE_CURRENT_BINARY_DIR}) include_directories(${CMAKE_CURRENT_BINARY_DIR})
include_directories(./) include_directories(./)
add_executable(citra-qt ${SRCS} ${HEADS} ${MOC_SRCS} ${UI_HDRS}) add_executable(citra-qt ${SRCS} ${HEADERS} ${MOC_SRCS} ${UI_HDRS})
if (APPLE) if (APPLE)
target_link_libraries(citra-qt core common video_core qhexedit iconv ${COREFOUNDATION_LIBRARY} ${QT_LIBRARIES} ${GLEW_LIBRARY} ${OPENGL_LIBRARIES}) target_link_libraries(citra-qt core common video_core qhexedit iconv ${COREFOUNDATION_LIBRARY} ${QT_LIBRARIES} ${GLEW_LIBRARY} ${OPENGL_LIBRARIES})
else() else()

View File

@ -19,7 +19,7 @@ set(SRCS break_points.cpp
timer.cpp timer.cpp
utf8.cpp) utf8.cpp)
set(HEADS atomic.h set(HEADERS atomic.h
atomic_gcc.h atomic_gcc.h
atomic_win32.h atomic_win32.h
bit_field.h bit_field.h
@ -58,4 +58,4 @@ set(HEADS atomic.h
timer.h timer.h
utf8.h) utf8.h)
add_library(common STATIC ${SRCS} ${HEADS}) add_library(common STATIC ${SRCS} ${HEADERS})

View File

@ -43,7 +43,7 @@ set(SRCS core.cpp
hw/lcd.cpp hw/lcd.cpp
hw/ndma.cpp) hw/ndma.cpp)
set(HEADS core.h set(HEADERS core.h
core_timing.h core_timing.h
loader.h loader.h
mem_map.h mem_map.h
@ -86,4 +86,4 @@ set(HEADS core.h
hw/lcd.h hw/lcd.h
hw/ndma.h) hw/ndma.h)
add_library(core STATIC ${SRCS} ${HEADS}) add_library(core STATIC ${SRCS} ${HEADERS})

View File

@ -2,9 +2,9 @@ set(SRCS video_core.cpp
utils.cpp utils.cpp
renderer_opengl/renderer_opengl.cpp) renderer_opengl/renderer_opengl.cpp)
set(HEADS video_core.h set(HEADERS video_core.h
utils.h utils.h
renderer_base.h renderer_base.h
renderer_opengl/renderer_opengl.h) renderer_opengl/renderer_opengl.h)
add_library(video_core STATIC ${SRCS} ${HEADS}) add_library(video_core STATIC ${SRCS} ${HEADERS})