-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathCMakeLists.txt
41 lines (33 loc) · 1.48 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
cmake_minimum_required(VERSION 3.16)
project(RealTimeParticles VERSION 1.1.0
DESCRIPTION "Minimalist real-time 3D particle system simulator"
HOMEPAGE_URL "https://github.com/axoloto/RealTimeParticles")
message(STATUS "${PROJECT_NAME} v${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}")
message(STATUS "build type: ${CMAKE_BUILD_TYPE}")
message(STATUS "build folder: ${CMAKE_BUILD_DIR}")
# CMake/C++ options
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
# 3rd party deps
include(cmake/Conan.cmake)
run_conan()
# Codebase
add_subdirectory("utils")
add_subdirectory("physics")
add_subdirectory("render")
add_subdirectory("ui")
add_subdirectory("app")
# Packaging
set(CPACK_PACKAGE_VENDOR "Adrien Moulin")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Minimalist real-time 3D particles system simulator")
set(CPACK_PACKAGE_VERSION_MAJOR ${PROJECT_VERSION_MAJOR})
set(CPACK_PACKAGE_VERSION_MINOR ${PROJECT_VERSION_MINOR})
set(CPACK_PACKAGE_VERSION_PATCH ${PROJECT_VERSION_PATCH})
set(CPACK_PACKAGE_DIRECTORY ${CMAKE_INSTALL_DIR})
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE")
set(CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_SOURCE_DIR}/README_Installer.txt")
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE" DESTINATION .)
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/README_Installer.txt" DESTINATION .)
include(CPack)