Commit 52710fe authored Jun 12, 2018 Verified
File tree 1 file changed +55
-0
lines changed
1 file changed +55
-0
lines changed Original file line number Diff line number Diff line change
1
+ cmake_minimum_required (VERSION 3.5)
2
+ project (CPPEstSim)
3
+
4
+ set (CMAKE_CXX_STANDARD 11)
5
+ #set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
6
+
7
+ include_directories (src)
8
+ include_directories (lib)
9
+
10
+ FILE (GLOB SOURCES
11
+ src/*.cpp
12
+ src/Drawing/*.cpp
13
+ src/Math/*.cpp
14
+ src/Simulation/*.cpp
15
+ src/Utility/*.cpp
16
+ src/MavlinkNode/*.cpp
17
+ src/MavlinkNode/*.h)
18
+
19
+ FILE (GLOB HEADERS
20
+ src/*.h
21
+ src/Drawing/*.h
22
+ src/Math/*.h
23
+ src/Simulation/*.h
24
+ src/Utility/*.h
25
+ lib/matrix/*.hpp
26
+ lib/mavlink/*.h
27
+ lib/mavlink/common/*.h)
28
+
29
+ find_package (Qt5Core REQUIRED)
30
+ find_package (Qt5Network REQUIRED)
31
+ find_package (Qt5Widgets REQUIRED)
32
+
33
+ # /System/Library/Frameworks/GLUT.framework
34
+ find_package (GLUT REQUIRED)
35
+ include_directories (${GLUT_INCLUDE_DIR} )
36
+ # /System/Library/Frameworks/OpenGL.framework
37
+ find_package (OpenGL REQUIRED)
38
+ include_directories (${OPENGL_INCLUDE_DIR} )
39
+
40
+ #find_package(GL REQUIRED)
41
+ #find_package(pthread REQUIRED)
42
+
43
+ add_executable (CPPEstSim
44
+ ${SOURCES}
45
+ ${HEADERS}
46
+ )
47
+
48
+ target_link_libraries (CPPEstSim
49
+ Qt5::Core
50
+ Qt5::Network
51
+ Qt5::Widgets
52
+ ${GLUT_LIBRARIES}
53
+ ${OPENGL_LIBRARIES}
54
+ pthread
55
+ )
You can’t perform that action at this time.
0 commit comments