-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
55 lines (46 loc) · 1.2 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
cmake_minimum_required(VERSION 3.5)
project(CPPSim)
set(CMAKE_CXX_STANDARD 11)
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
include_directories(src)
include_directories(lib)
FILE(GLOB SOURCES
src/*.cpp
src/Drawing/*.cpp
src/Math/*.cpp
src/Simulation/*.cpp
src/Utility/*.cpp
src/MavlinkNode/*.cpp
src/MavlinkNode/*.h)
FILE(GLOB HEADERS
src/*.h
src/Drawing/*.h
src/Math/*.h
src/Simulation/*.h
src/Utility/*.h
lib/matrix/*.hpp
lib/mavlink/*.h
lib/mavlink/common/*.h)
find_package(Qt5Core REQUIRED)
find_package(Qt5Network REQUIRED)
find_package(Qt5Widgets REQUIRED)
# /System/Library/Frameworks/GLUT.framework
find_package(GLUT REQUIRED)
include_directories(${GLUT_INCLUDE_DIR})
# /System/Library/Frameworks/OpenGL.framework
find_package(OpenGL REQUIRED)
include_directories(${OPENGL_INCLUDE_DIR})
#find_package(GL REQUIRED)
#find_package(pthread REQUIRED)
add_executable(CPPSim
${SOURCES}
${HEADERS}
)
target_link_libraries(CPPSim
Qt5::Core
Qt5::Network
Qt5::Widgets
${GLUT_LIBRARIES}
${OPENGL_LIBRARIES}
pthread
)