PageRenderTime 15ms CodeModel.GetById 13ms app.highlight 1ms RepoModel.GetById 0ms app.codeStats 0ms

/src/Core_WindowEvents/MacOSXCocoa/CMakeLists.txt

http://github.com/Akranar/daguerreo
CMake | 23 lines | 16 code | 7 blank | 0 comment | 0 complexity | b58b01caba47d8be4f9c3d264d76cbc5 MD5 | raw file
Possible License(s): AGPL-3.0, LGPL-2.1, LGPL-3.0, GPL-2.0
 1CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
 2
 3Project(Core_WindowEvents_MacOSXCocoa)
 4
 5FILE(GLOB WindowEvents_MacOSXCocoa_SRCS *.mm)
 6FILE(GLOB WindowEvents_MacOSXCocoa_H *.h)
 7
 8SET(WindowEvents_MacOSXCocoa_SRCS ${WindowEvents_MacOSXCocoa_SRCS} ${WindowEvents_MacOSXCocoa_H})
 9
10IF(APPLE)
11    SET(GUI_TYPE MACOSX_BUNDLE)
12    FIND_LIBRARY(COCOA_LIBRARY Cocoa)
13    FIND_LIBRARY(OPENGL_LIBRARY OpenGL)
14    MARK_AS_ADVANCED (COCOA_LIBRARY OPENGL_LIBRARY)
15    SET(EXTRA_LIBS ${COCOA_LIBRARY} ${OPENGL_LIBRARY})
16
17ELSE(APPLE)
18    SET_SOURCE_FILES_PROPERTIES(${WindowEvents_MacOSXCocoa_SRCS} PROPERTIES HEADER_FILE_ONLY TRUE)
19ENDIF(APPLE)
20
21ADD_LIBRARY(Core_WindowEvents_MacOSXCocoa STATIC ${WindowEvents_MacOSXCocoa_SRCS})
22TARGET_LINK_LIBRARIES(Core_WindowEvents_MacOSXCocoa ${EXTRA_LIBS})
23