17 lines
334 B
CMake
17 lines
334 B
CMake
|
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")
|
||
|
|
||
|
set(CMAKE_INSTALL_PREFIX ${PROJECT_SOURCE_DIR})
|
||
|
|
||
|
set(INCLUDE_DIR ${PROJECT_SOURCE_DIR}/include)
|
||
|
include_directories(${INCLUDE_DIR})
|
||
|
|
||
|
add_subdirectory(src)
|
||
|
add_subdirectory(lib)
|
||
|
|
||
|
|