-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
38 lines (31 loc) · 1.22 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
CMAKE_MINIMUM_REQUIRED(VERSION 2.8 FATAL_ERROR)
# ¡ã?¡À???
SET(Visual_VERSION_MAJOR 0)
SET(Visual_VERSION_MINOR 1)
PROJECT( Visuail)
INCLUDE_DIRECTORIES(${Visuail_SOURCE_DIR}/External/include )
INCLUDE_DIRECTORIES(${Visuail_SOURCE_DIR}/Engine/include )
INCLUDE_DIRECTORIES(${Visuail_SOURCE_DIR}/Asset)
MESSAGE(STATUS "operation system is ${CMAKE_SYSTEM}")
IF (CMAKE_SYSTEM_NAME MATCHES "Linux")
MESSAGE(STATUS "current platform: Linux ")
LINK_DIRECTORIES(
/usr/lib64/)
ELSEIF (CMAKE_SYSTEM_NAME MATCHES "Windows")
MESSAGE(STATUS "current platform: Windows")
find_package(OpenGL REQUIRED)
include_directories(${OpenGL_INCLUDE_DIRS})
link_directories(${OpenGL_LIBRARY_DIRS})
add_definitions(${OpenGL_DEFINITIONS})
if(NOT OpenGL_FOUND)
message(Error "OpenGL not found")
endif(NOT OpenGL_FOUND)
find_library( GLEW_LIBRARY glew32.lib External/lib)
find_library( GLFW_LIBRARY glfw3.lib External/lib)
find_library( FREEIMAGE_LIBRARY FreeImage.lib External/lib)
ELSEIF (CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
MESSAGE(STATUS "current platform: FreeBSD")
ELSE ()
MESSAGE(STATUS "other platform: ${CMAKE_SYSTEM_NAME}")
ENDIF (CMAKE_SYSTEM_NAME MATCHES "Linux")
SUBDIRS( Engine Test)