-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathCMakeLists.txt
52 lines (43 loc) · 1.8 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
cmake_minimum_required(VERSION 2.8)
project(RollerCoasters)
set(SRC_DIR ${PROJECT_SOURCE_DIR}/src/)
set(INCLUDE_DIR ${PROJECT_SOURCE_DIR}/include/)
set(LIB_DIR ${PROJECT_SOURCE_DIR}/lib/)
include_directories(${INCLUDE_DIR})
include_directories(${INCLUDE_DIR}glad4.6/include/)
include_directories(${INCLUDE_DIR}glm-0.9.8.5/glm/)
add_Definitions("-D_XKEYCHECK_H")
add_definitions(-DPROJECT_DIR="${PROJECT_SOURCE_DIR}")
add_executable(RollerCoasters
${SRC_DIR}CallBacks.h
${SRC_DIR}CallBacks.cpp
${SRC_DIR}ControlPoint.h
${SRC_DIR}ControlPoint.cpp
${SRC_DIR}main.cpp
${SRC_DIR}Object.h
${SRC_DIR}Track.h
${SRC_DIR}Track.cpp
${SRC_DIR}TrainView.h
${SRC_DIR}TrainView.cpp
${SRC_DIR}TrainWindow.h
${SRC_DIR}TrainWindow.cpp
${INCLUDE_DIR}glad4.6/src/glad.c)
add_library(Utilities
${SRC_DIR}Utilities/3DUtils.h
${SRC_DIR}Utilities/3DUtils.cpp
${SRC_DIR}Utilities/ArcBallCam.h
${SRC_DIR}Utilities/ArcBallCam.cpp
${SRC_DIR}Utilities/Pnt3f.h
${SRC_DIR}Utilities/Pnt3f.cpp)
target_link_libraries(RollerCoasters
debug ${LIB_DIR}Debug/fltk_formsd.lib optimized ${LIB_DIR}Release/fltk_forms.lib
debug ${LIB_DIR}Debug/fltk_gld.lib optimized ${LIB_DIR}Release/fltk_gl.lib
debug ${LIB_DIR}Debug/fltk_imagesd.lib optimized ${LIB_DIR}Release/fltk_images.lib
debug ${LIB_DIR}Debug/fltk_jpegd.lib optimized ${LIB_DIR}Release/fltk_jpeg.lib
debug ${LIB_DIR}Debug/fltk_pngd.lib optimized ${LIB_DIR}Release/fltk_png.lib
debug ${LIB_DIR}Debug/fltk_zd.lib optimized ${LIB_DIR}Release/fltk_z.lib
debug ${LIB_DIR}Debug/fltkd.lib optimized ${LIB_DIR}Release/fltk.lib)
target_link_libraries(RollerCoasters
${LIB_DIR}OpenGL32.lib
${LIB_DIR}glu32.lib)
target_link_libraries(RollerCoasters Utilities)