forked from SimonWallner/kocmoc-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
29 lines (22 loc) · 994 Bytes
/
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
# root build file for the KOCMOC demo
cmake_minimum_required(VERSION 2.8)
project(kocmoc CXX)
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
# make platform dependent!!!
if(WIN32)
add_subdirectory(external/gl3w)
endif(WIN32)
# add_subdirectory(external/glm)
add_subdirectory(external/opencollada)
add_subdirectory(src)
# copy and configure
message(STATUS "configuring files...")
set(MEDIA_PATH ${PROJECT_SOURCE_DIR}/media)
configure_file(media/kocmoc.properties.in ${EXECUTABLE_OUTPUT_PATH}/kocmoc.properties)
message(STATUS "copying files...")
if(WIN32)
configure_file(${PROJECT_SOURCE_DIR}/external/devIL/lib/DevIL.dll ${EXECUTABLE_OUTPUT_PATH} COPYONLY)
configure_file(${PROJECT_SOURCE_DIR}/external/devIL/lib/ILU.dll ${EXECUTABLE_OUTPUT_PATH} COPYONLY)
configure_file(${PROJECT_SOURCE_DIR}/external/devIL/lib/ILUT.dll ${EXECUTABLE_OUTPUT_PATH} COPYONLY)
configure_file(${PROJECT_SOURCE_DIR}/external/freealut/lib/alut.dll ${EXECUTABLE_OUTPUT_PATH} COPYONLY)
endif(WIN32)