atpg-ls/CMakeLists.txt

19 lines
454 B
CMake
Raw Normal View History

2023-07-31 05:55:25 +00:00
cmake_minimum_required(VERSION 3.0)
project(atpg)
set(CMAKE_CXX_STANDARD 17)
# 设置编译器优化选项
2023-08-09 07:47:50 +00:00
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Ofast -march=native -flto")
2023-07-31 05:55:25 +00:00
# 设置源文件和头文件的路径
aux_source_directory(${PROJECT_SOURCE_DIR}/src SOURCES)
set(INCLUDES ${PROJECT_SOURCE_DIR}/src)
message(${SOURCES})
# 生成可执行文件
add_executable(${PROJECT_NAME} ${SOURCES})
# 添加头文件
include_directories(${INCLUDES})