-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
32 lines (27 loc) · 1007 Bytes
/
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
cmake_minimum_required(VERSION 3.30.0)
project(planning
VERSION 0.0.1
DESCRIPTION "a demo for cmake planning"
HOMEPAGE_URL "https://github.com/ExplorerFzw/cmake_planning_demo"
LANGUAGES CXX
)
set(CMAKE_CXX_STANDARD 17)
enable_testing()
# 变量设置
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin)
set(Process_Dir ${CMAKE_SOURCE_DIR}/src/process)
set(PNC_Map_Dir ${CMAKE_SOURCE_DIR}/src/pnc_map)
set(Show_Result_Dir ${CMAKE_SOURCE_DIR}/src/show_result)
# 三方库
set(EIGEN3_INCLUDE_DIR "D:/Software/Cplusplus_3rdparty/eigen-3.4.0")
list(APPEND CMAKE_MODULE_PATH ${EIGEN3_INCLUDE_DIR}/cmake)
message("CMAKE_MODULE_PATH = ${CMAKE_MODULE_PATH}")
find_package(Eigen3 3.4 REQUIRED)
if(TARGET Eigen3::Eigen)
message(STATUS "********* Eigen3 3.4 found in ${EIGEN3_INCLUDE_DIR} *********")
endif()
include_directories(${CMAKE_SOURCE_DIR}/third_party/easyx)
link_directories(${CMAKE_SOURCE_DIR}/third_party/easyx)
# 添加子目录
add_subdirectory(src)
add_subdirectory(test)