mirror of
https://github.com/PabloMK7/citra.git
synced 2025-09-10 04:40:05 +00:00
IT'S ALIVE!
This commit is contained in:
parent
5749d1eabe
commit
5a9c2ce5ea
5 changed files with 80 additions and 7 deletions
|
@ -2,7 +2,8 @@ cmake_minimum_required(VERSION 2.6)
|
|||
|
||||
project(citra)
|
||||
|
||||
SET(GCC_COMPILE_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
|
||||
add_definitions(-Wno-attributes)
|
||||
|
@ -11,11 +12,16 @@ add_definitions(${GCC_COMPILE_FLAGS})
|
|||
|
||||
# dependency checking
|
||||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/CMakeTests)
|
||||
include(FindOpenGL REQUIRED)
|
||||
include(FindX11 REQUIRED)
|
||||
find_package(PkgConfig REQUIRED)
|
||||
find_package(GLEW REQUIRED)
|
||||
find_package(OpenGL REQUIRED)
|
||||
pkg_search_module(GLFW REQUIRED glfw3)
|
||||
|
||||
IF (APPLE)
|
||||
FIND_LIBRARY(COREFOUNDATION_LIBRARY CoreFoundation)
|
||||
ENDIF (APPLE)
|
||||
|
||||
include_directories(${GLFW_INCLUDE_DIRS})
|
||||
option(DISABLE_QT4 "Disable Qt4 GUI" OFF)
|
||||
if(NOT DISABLE_QT4)
|
||||
|
@ -40,6 +46,7 @@ git_branch_name(GIT_BRANCH)
|
|||
|
||||
# external includes
|
||||
include_directories(${OPENGL_INCLUDE_DIR})
|
||||
include_directories(${GLEW_INCLUDE_DIR})
|
||||
|
||||
# internal includes
|
||||
include_directories(src)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue