2022-11-10 19:47:39 +01:00
|
|
|
cmake_minimum_required(VERSION 3.2)
|
|
|
|
|
|
|
|
project(cmake-project-template)
|
|
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD 11)
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -O3")
|
2023-05-20 21:19:44 +02:00
|
|
|
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -g")
|
2022-11-10 19:47:39 +01:00
|
|
|
|
|
|
|
set(CMAKE_INSTALL_PREFIX ${PROJECT_SOURCE_DIR})
|
|
|
|
|
|
|
|
set(INCLUDE_DIR ${PROJECT_SOURCE_DIR}/include)
|
|
|
|
include_directories(${INCLUDE_DIR})
|
|
|
|
|
|
|
|
add_subdirectory(src)
|
|
|
|
add_subdirectory(lib)
|
|
|
|
|
|
|
|
|