18 lines
559 B
CMake
18 lines
559 B
CMake
cmake_minimum_required(VERSION 3.14)
|
|
project(Morden_C++)
|
|
|
|
set(CMAKE_CXX_STANDARD 11)
|
|
# boost
|
|
set(BOOST_INCLUDE_DIR /home/light/bst/include)
|
|
set(BOOST_LINK_DIR /home/light/bst/lib)
|
|
|
|
# 去哪里找头文件 相当于gcc/clang 中的-I(i的大写字母)参数
|
|
include_directories(${BOOST_INCLUDE_DIR})
|
|
# 去哪里找库文件 .so .dll .dylib 相当于gcc 中的-L参数
|
|
link_directories(${BOOST_LINK_DIR})
|
|
|
|
add_executable(heap RAII/heap.cpp)
|
|
add_executable(stack RAII/stack.cpp)
|
|
add_executable(RAII RAII/RAII.cpp)
|
|
add_executable(auto_ptr smart_ptr/auto_ptr.cpp)
|