-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCMakeLists.txt
63 lines (44 loc) · 1.21 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
53
54
55
56
57
58
59
60
61
62
63
# CMake entry point
cmake_minimum_required (VERSION 2.6)
project (graphoScan)
find_package(OpenGL REQUIRED)
find_package(OpenCV REQUIRED)
find_package(glfw3 3.1.2 REQUIRED)
include_directories( ${OpenCV_INCLUDE_DIRS} )
add_compile_options(-std=c++11)
set(GL_LIBRARY GL GLU X11)
set(ALL_LIBS
${OPENGL_gl_LIBRARY}
${OpenCV_LIBS}
glfw
GLEW
pthread
)
add_definitions(
-DTW_STATIC
-DTW_NO_LIBe_PRAGMA
-DTW_NO_DIRECT3D
-DGLEW_STATIC
-D_CRT_SECURE_NO_WARNINGS
)
#add_executable(opengl.o
# Shader.cpp Camera.cpp OpenGL.cpp
# )
#add_executable(graphoscan.o
# HOG.cpp GraphoScan.cpp
# )
#add_executable(graphoScan
# opengl.o graphoscan.o main.cpp
# )
add_executable(graphoScan
HOG.cpp Shader.cpp Camera.cpp GraphoScan.cpp OpenGL.cpp main.cpp
)
target_link_libraries(graphoScan
${ALL_LIBS} ${GL_LIBRARY}
)
add_custom_command(
TARGET graphoScan POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/graphoScan${CMAKE_EXECUTABLE_SUFFIX}" "${CMAKE_CURRENT_SOURCE_DIR}"
)
# SOURCE_GROUP(common REGULAR_EXPRESSION ".*/common/.*" )
# SOURCE_GROUP(shaders REGULAR_EXPRESSION ".*/.*shader$" )