-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
30 lines (22 loc) · 870 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
cmake_minimum_required(VERSION 3.0.0)
# Set for static linking
if(MSVC)
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
endif()
project(ApollonianProj VERSION 0.1.0 LANGUAGES C CXX)
# Set the output directory for the build
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin/${CMAKE_BUILD_TYPE}/)
# Add the include directories for the project
include_directories(${CMAKE_SOURCE_DIR}/include)
add_executable(Apollonian main.cpp)
# Set the C++ standard to C++17
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# Find and add the SFML static library
add_definitions(-DSFML_STATIC)
set(SFML_STATIC_LIBRARIES TRUE)
find_package(SFML 3.0 COMPONENTS Graphics REQUIRED)
target_link_libraries(Apollonian SFML::Graphics)
set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
include(CPack)