2020-07-03 03:48:58 +00:00
|
|
|
cmake_minimum_required (VERSION 3.6)
|
|
|
|
project(first_example)
|
|
|
|
|
|
|
|
add_executable(first_example src/main.cpp)
|
|
|
|
|
|
|
|
# Link headers and source files.
|
|
|
|
file(GLOB_RECURSE source_list src/*.cpp)
|
|
|
|
target_sources(first_example PRIVATE ${source_list})
|
|
|
|
target_include_directories(first_example PUBLIC include)
|
|
|
|
|
2020-07-03 03:53:28 +00:00
|
|
|
# Link simpleengine
|
|
|
|
target_link_libraries(first_example PUBLIC simpleengine)
|
2020-07-03 03:48:58 +00:00
|
|
|
|
|
|
|
# Set standard to C++17
|
|
|
|
set_target_properties(first_example PROPERTIES CXX_STANDARD 17 CXX_EXTENSIONS OFF)
|