summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt5
-rw-r--r--src/citra/CMakeLists.txt4
-rw-r--r--src/citra_qt/CMakeLists.txt4
-rw-r--r--src/common/CMakeLists.txt4
-rw-r--r--src/core/CMakeLists.txt4
-rw-r--r--src/video_core/CMakeLists.txt4
6 files changed, 12 insertions, 13 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b4665640c..76190c5e4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -3,8 +3,6 @@ cmake_minimum_required(VERSION 2.6)
3project(citra) 3project(citra)
4 4
5SET(CMAKE_CXX_FLAGS "-std=c++11 -fpermissive") 5SET(CMAKE_CXX_FLAGS "-std=c++11 -fpermissive")
6SET(CMAKE_CXX_FLAGS_DEBUG "-std=c++11 -fpermissive")
7SET(CMAKE_CXX_FLAGS_RELEASE "-std=c++11 -fpermissive")
8 6
9# silence some spam 7# silence some spam
10add_definitions(-Wno-attributes) 8add_definitions(-Wno-attributes)
@@ -20,6 +18,7 @@ find_package(GLEW REQUIRED)
20find_package(OpenGL REQUIRED) 18find_package(OpenGL REQUIRED)
21pkg_search_module(GLFW REQUIRED glfw3) 19pkg_search_module(GLFW REQUIRED glfw3)
22 20
21# corefoundation is required only on OSX
23IF (APPLE) 22IF (APPLE)
24 FIND_LIBRARY(COREFOUNDATION_LIBRARY CoreFoundation) 23 FIND_LIBRARY(COREFOUNDATION_LIBRARY CoreFoundation)
25 SET(CMAKE_CXX_FLAGS "-stdlib=libc++") 24 SET(CMAKE_CXX_FLAGS "-stdlib=libc++")
@@ -31,7 +30,7 @@ include_directories(${GLFW_INCLUDE_DIRS})
31include_directories(${OPENGL_INCLUDE_DIR}) 30include_directories(${OPENGL_INCLUDE_DIR})
32include_directories(${GLEW_INCLUDE_DIR}) 31include_directories(${GLEW_INCLUDE_DIR})
33 32
34#use pkg_search_module library dirs 33# workaround for GLFW linking on OSX
35link_directories(${GLFW_LIBRARY_DIRS}) 34link_directories(${GLFW_LIBRARY_DIRS})
36 35
37option(DISABLE_QT4 "Disable Qt4 GUI" OFF) 36option(DISABLE_QT4 "Disable Qt4 GUI" OFF)
diff --git a/src/citra/CMakeLists.txt b/src/citra/CMakeLists.txt
index 7787d6a72..1ad607d76 100644
--- a/src/citra/CMakeLists.txt
+++ b/src/citra/CMakeLists.txt
@@ -1,6 +1,6 @@
1set(SRCS citra.cpp 1set(SRCS citra.cpp
2 emu_window/emu_window_glfw.cpp) 2 emu_window/emu_window_glfw.cpp)
3set(HEADS citra.h 3set(HEADERS citra.h
4 resource.h) 4 resource.h)
5 5
6# NOTE: This is a workaround for CMake bug 0006976 (missing X11_xf86vmode_LIB variable) 6# NOTE: This is a workaround for CMake bug 0006976 (missing X11_xf86vmode_LIB variable)
@@ -8,7 +8,7 @@ if (NOT X11_xf86vmode_LIB)
8 set(X11_xv86vmode_LIB Xxf86vm) 8 set(X11_xv86vmode_LIB Xxf86vm)
9endif() 9endif()
10 10
11add_executable(citra ${SRCS} ${HEADS}) 11add_executable(citra ${SRCS} ${HEADERS})
12 12
13if (APPLE) 13if (APPLE)
14 target_link_libraries(citra core common video_core iconv pthread ${COREFOUNDATION_LIBRARY} ${OPENGL_LIBRARIES} ${GLEW_LIBRARY} ${GLFW_LIBRARIES}) 14 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.txt
index 9d983c0f0..549f69217 100644
--- a/src/citra_qt/CMakeLists.txt
+++ b/src/citra_qt/CMakeLists.txt
@@ -8,7 +8,7 @@ set(SRCS
8 main.cpp 8 main.cpp
9 config/controller_config.cpp 9 config/controller_config.cpp
10 config/controller_config_util.cpp) 10 config/controller_config_util.cpp)
11set (HEADS 11set (HEADERS
12 bootmanager.hxx 12 bootmanager.hxx
13 debugger/callstack.hxx 13 debugger/callstack.hxx
14 debugger/disassembler.hxx 14 debugger/disassembler.hxx
@@ -49,7 +49,7 @@ qt4_wrap_cpp(MOC_SRCS
49include_directories(${CMAKE_CURRENT_BINARY_DIR}) 49include_directories(${CMAKE_CURRENT_BINARY_DIR})
50include_directories(./) 50include_directories(./)
51 51
52add_executable(citra-qt ${SRCS} ${HEADS} ${MOC_SRCS} ${UI_HDRS}) 52add_executable(citra-qt ${SRCS} ${HEADERS} ${MOC_SRCS} ${UI_HDRS})
53if (APPLE) 53if (APPLE)
54 target_link_libraries(citra-qt core common video_core qhexedit iconv ${COREFOUNDATION_LIBRARY} ${QT_LIBRARIES} ${GLEW_LIBRARY} ${OPENGL_LIBRARIES}) 54 target_link_libraries(citra-qt core common video_core qhexedit iconv ${COREFOUNDATION_LIBRARY} ${QT_LIBRARIES} ${GLEW_LIBRARY} ${OPENGL_LIBRARIES})
55else() 55else()
diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt
index 0027ae2b0..aae183393 100644
--- a/src/common/CMakeLists.txt
+++ b/src/common/CMakeLists.txt
@@ -19,7 +19,7 @@ set(SRCS break_points.cpp
19 timer.cpp 19 timer.cpp
20 utf8.cpp) 20 utf8.cpp)
21 21
22set(HEADS atomic.h 22set(HEADERS atomic.h
23 atomic_gcc.h 23 atomic_gcc.h
24 atomic_win32.h 24 atomic_win32.h
25 bit_field.h 25 bit_field.h
@@ -58,4 +58,4 @@ set(HEADS atomic.h
58 timer.h 58 timer.h
59 utf8.h) 59 utf8.h)
60 60
61add_library(common STATIC ${SRCS} ${HEADS}) 61add_library(common STATIC ${SRCS} ${HEADERS})
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt
index ddf6bf79c..14c598bf3 100644
--- a/src/core/CMakeLists.txt
+++ b/src/core/CMakeLists.txt
@@ -43,7 +43,7 @@ set(SRCS core.cpp
43 hw/lcd.cpp 43 hw/lcd.cpp
44 hw/ndma.cpp) 44 hw/ndma.cpp)
45 45
46set(HEADS core.h 46set(HEADERS core.h
47 core_timing.h 47 core_timing.h
48 loader.h 48 loader.h
49 mem_map.h 49 mem_map.h
@@ -86,4 +86,4 @@ set(HEADS core.h
86 hw/lcd.h 86 hw/lcd.h
87 hw/ndma.h) 87 hw/ndma.h)
88 88
89add_library(core STATIC ${SRCS} ${HEADS}) 89add_library(core STATIC ${SRCS} ${HEADERS})
diff --git a/src/video_core/CMakeLists.txt b/src/video_core/CMakeLists.txt
index 8d04d381c..e43e6e1bb 100644
--- a/src/video_core/CMakeLists.txt
+++ b/src/video_core/CMakeLists.txt
@@ -2,9 +2,9 @@ set(SRCS video_core.cpp
2 utils.cpp 2 utils.cpp
3 renderer_opengl/renderer_opengl.cpp) 3 renderer_opengl/renderer_opengl.cpp)
4 4
5set(HEADS video_core.h 5set(HEADERS video_core.h
6 utils.h 6 utils.h
7 renderer_base.h 7 renderer_base.h
8 renderer_opengl/renderer_opengl.h) 8 renderer_opengl/renderer_opengl.h)
9 9
10add_library(video_core STATIC ${SRCS} ${HEADS}) 10add_library(video_core STATIC ${SRCS} ${HEADERS})