-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
64 lines (52 loc) · 1.33 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
cmake_minimum_required(VERSION 3.9)
project(CPPSim)
set(CMAKE_CXX_STANDARD 11)
if (APPLE)
set(__APPLE__ ${APPLE})
message("${__APPLE__}")
endif(APPLE)
add_executable(CPPSim
# ${SOURCES}
# ${HEADERS}
)
find_package(PkgConfig REQUIRED)
find_package(freeglut QUIET)
if (NOT freeglut_FOUND)
pkg_check_modules(freeglut REQUIRED freeglut)
endif()
#find_package(Qt5Core REQUIRED)
#find_package(Qt5Network REQUIRED)
#find_package(Qt5Widgets REQUIRED)
find_package(OpenGL REQUIRED)
#find_package(GL REQUIRED)
#find_package(pthread REQUIRED)
file(GLOB SOURCES
src/*.cpp
src/Drawing/*.cpp
src/Math/*.cpp
src/Simulation/*.cpp
src/Utility/*.cpp
src/MavlinkNode/*.cpp
src/MavlinkNode/*.h)
target_include_directories(CPPSim PUBLIC src lib)
target_sources(CPPSim PUBLIC ${SOURCES})
target_link_libraries(CPPSim
# Qt5::Core
# Qt5::Network
# Qt5::Widgets
${freeglut_LIBRARIES}
${OPENGL_LIBRARIES}
# GLU
# GL
# pthread
)
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
#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)