-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
43 lines (33 loc) · 1.18 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
cmake_minimum_required(VERSION 3.16)
project(Waisting VERSION 0.1 LANGUAGES CXX)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
set(CMAKE_CXX_STANDARD 17)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
include(atom)
# include(FindOsgEarth)#如何控制debug引用的dll文件??
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/exe/bin)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/exe/lib)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/exe/lib)
find_package(Qt6 6.5 REQUIRED COMPONENTS Quick)
qt_standard_project_setup(REQUIRES 6.5)
set(ThirdPartyPath ${CMAKE_CURRENT_SOURCE_DIR}/3rd)
set(OSG_DIR ${ThirdPartyPath}/osg)
set(osgEarth_DIR ${ThirdPartyPath}/osg/cmake)
set(GeographicLib_DIR ${ThirdPartyPath}/GeographicLib2.3/cmake/GeographicLib)
set(GDAL_ROOT ${ThirdPartyPath}/gdal)
set(SubDirs
App
WTComponents
WTTools
WTOSG
)
#全局设置
link_directories(${CMAKE_ARCHIVE_OUTPUT_DIRECTORY})
foreach(oneDir ${SubDirs} )
include_directories(${oneDir})
endforeach( )
foreach(oneDir ${SubDirs} )
add_subdirectory(${oneDir})
endforeach( )