forked from ntoand/windmap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
44 lines (37 loc) · 1010 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
cmake_minimum_required(VERSION 2.8.1)
find_package(Omegalib)
# Set the module name here
SET(MODULE_NAME windmap)
include_directories(
${OMEGA_INCLUDE_DIRS}
app/external/glm-0.9.4.0/
)
message(${CMAKE_SOURCE_DIR})
add_definitions(-DSHADER_DIR=\"${CMAKE_SOURCE_DIR}/shaders/\")
add_definitions(-DOMEGALIB_MODULE)
# Set module name and source files here
add_library(${MODULE_NAME} MODULE
Program.h
Program.cpp
ColorTexture.h
ColorTexture.cpp
FrameBuffer.h
FrameBuffer.cpp
INIReader.h
stb_image.h
WindMap.h
WindMap.cpp
windmap_main.cpp
)
# Set the module library dependencies here
target_link_libraries(${MODULE_NAME}
stdc++
${OMEGA_LIB}
python2.7
)
#------------------------------------------------------------------------------
# DO NOT MODIFY ANYTHING BELOW AFTER THIS LINE
set_target_properties(${MODULE_NAME} PROPERTIES PREFIX "")
if(WIN32)
set_target_properties(${MODULE_NAME} PROPERTIES FOLDER modules SUFFIX ".pyd")
endif()