PageRenderTime 24ms CodeModel.GetById 23ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/src/Core_WindowEvents/CMakeLists.txt~

http://github.com/Akranar/daguerreo
Unknown | 37 lines | 27 code | 10 blank | 0 comment | 0 complexity | 36bab46ed7ad19c75469b7e3ce157c3d 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
 3#Relevant Defines:
 4#   -> USE_DIRECTX10
 5
 6Project(Core_WindowEvents_Common)
 7
 8FILE(GLOB WindowEvents_Common_SRCS *.cpp)
 9FILE(GLOB WindowEvents_Common_H *.h)
10
11IF(WIN32)
12    SET(WindowEvents_Common_SRCS ${WindowEvents_Common_SRCS} ${WindowEvents_Common_H})
13ENDIF(WIN32)
14
15ADD_LIBRARY(Core_WindowEvents STATIC ${WindowEvents_Common_SRCS})
16
17ADD_SUBDIRECTORY(Win32OpenGL)
18ADD_SUBDIRECTORY(MacOSXCocoa)
19ADD_SUBDIRECTORY(XLIB)
20ADD_SUBDIRECTORY(Win32D3D10)
21
22IF(WIN32)
23    IF (USE_DIRECTX10)
24        SET(WindowEvents_Implementation Core_WindowEvents_Win32D3D10)
25    ELSEIF(USE_DIRECTX9)
26
27    ELSEIF(USE_OPENGL) 
28        SET(WindowEvents_Implementation Core_WindowEvents_Win32OpenGL)
29    ENDIF(USE_DIRECTX10)
30ELSEIF(APPLE)
31    SET(WindowEvents_Implementation Core_WindowEvents_MacOSXCocoa)
32ELSE(WIN32)
33    SET(WindowEvents_Implementation Core_WindowEvents_XLIB)
34ENDIF(WIN32)
35TARGET_LINK_LIBRARIES(Core_WindowEvents ${WindowEvents_Implementation})
36
37