@ -2,12 +2,12 @@ cmake_minimum_required(VERSION 2.6)
project ( citra )
project ( citra )
SET ( C MAKE_C XX_FLAGS "-std=c++11 -fpermissive" )
SET ( C XX_COMPILE _FLAGS "-std=c++11 -fpermissive" )
# s i l e n c e s o m e s p a m
# s i l e n c e s o m e s p a m
add_definitions ( -Wno-attributes )
add_definitions ( -Wno-attributes )
add_definitions ( -DSINGLETHREADED )
add_definitions ( -DSINGLETHREADED )
add_definitions ( ${ GC C_COMPILE_FLAGS} )
add_definitions ( ${ CXX _COMPILE_FLAGS} )
# d e p e n d e n c y c h e c k i n g
# d e p e n d e n c y c h e c k i n g
list ( APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/externals/cmake-modules/" )
list ( APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/externals/cmake-modules/" )
@ -21,14 +21,14 @@ pkg_search_module(GLFW REQUIRED glfw3)
# c o r e f o u n d a t i o n i s r e q u i r e d o n l y o n O S X
# c o r e f o u n d a t i o n i s r e q u i r e d o n l y o n O S X
IF ( APPLE )
IF ( APPLE )
FIND_LIBRARY ( COREFOUNDATION_LIBRARY CoreFoundation )
FIND_LIBRARY ( COREFOUNDATION_LIBRARY CoreFoundation )
SET ( CMAKE_CXX_FLAGS " -stdlib=libc++")
SET ( CMAKE_CXX_FLAGS " ${CMAKE_CXX_FLAGS} -stdlib=libc++")
SET ( CMAKE_EXE_LINKER_FLAGS " -stdlib=libc++")
SET ( CMAKE_EXE_LINKER_FLAGS " ${CMAKE_EXE_LINKER_FLAGS} -stdlib=libc++")
ENDIF ( APPLE )
ENDIF ( APPLE )
# e x t e r n a l i n c l u d e s
# e x t e r n a l i n c l u d e s
include_directories ( ${ GLFW_INCLUDE_DIRS } )
include_directories ( ${ GLFW_INCLUDE_DIRS } )
include_directories ( ${ OPENGL_INCLUDE_DIR } )
include_directories ( ${ OPENGL_INCLUDE_DIR } )
include_directories ( ${ GLEW_INCLUDE_ DIR } )
include_directories ( ${ GLEW_INCLUDE_ PATH } )
# w o r k a r o u n d f o r G L F W l i n k i n g o n O S X
# w o r k a r o u n d f o r G L F W l i n k i n g o n O S X
link_directories ( ${ GLFW_LIBRARY_DIRS } )
link_directories ( ${ GLFW_LIBRARY_DIRS } )