diff options
author | bunnei <bunneidev@gmail.com> | 2015-01-10 08:03:07 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2015-01-10 08:03:07 +0100 |
commit | e7d21188588266cc6846f73a2f20b4a6aea6d750 (patch) | |
tree | ba24bb1c44b9aa926563cd9f39c7495bc2a52858 /CMakeLists.txt | |
parent | Merge pull request #454 from chinhodado/patch-1 (diff) | |
parent | Looks like that might be needed on OSX after all (diff) | |
download | yuzu-e7d21188588266cc6846f73a2f20b4a6aea6d750.tar yuzu-e7d21188588266cc6846f73a2f20b4a6aea6d750.tar.gz yuzu-e7d21188588266cc6846f73a2f20b4a6aea6d750.tar.bz2 yuzu-e7d21188588266cc6846f73a2f20b4a6aea6d750.tar.lz yuzu-e7d21188588266cc6846f73a2f20b4a6aea6d750.tar.xz yuzu-e7d21188588266cc6846f73a2f20b4a6aea6d750.tar.zst yuzu-e7d21188588266cc6846f73a2f20b4a6aea6d750.zip |
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 76dc2ab1a..9151fe479 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,8 +5,8 @@ cmake_minimum_required(VERSION 2.8.11) project(citra) if (NOT MSVC) - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wno-attributes") - add_definitions(-pthread) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wno-attributes -pthread") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pthread") else() # Silence deprecation warnings add_definitions(/D_CRT_SECURE_NO_WARNINGS) @@ -106,10 +106,17 @@ if (ENABLE_GLFW) endif() IF (APPLE) - # CoreFoundation is required only on OSX - FIND_LIBRARY(COREFOUNDATION_LIBRARY CoreFoundation) + FIND_LIBRARY(COCOA_LIBRARY Cocoa) # Umbrella framework for everything GUI-related + FIND_LIBRARY(IOKIT_LIBRARY IOKit) # GLFW dependency + FIND_LIBRARY(COREVIDEO_LIBRARY CoreVideo) # GLFW dependency + set(PLATFORM_LIBRARIES iconv ${COCOA_LIBRARY} ${IOKIT_LIBRARY} ${COREVIDEO_LIBRARY}) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++") set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -stdlib=libc++") +ELSEIF(WIN32) + set(PLATFORM_LIBRARIES winmm) +ELSE() + set(PLATFORM_LIBRARIES rt) ENDIF (APPLE) option(ENABLE_QT "Enable the Qt frontend" ON) |