2022-09-22 20:43:06 +05:00
|
|
|
cmake_minimum_required (VERSION 3.16)
|
|
|
|
|
2022-11-18 21:50:49 +05:00
|
|
|
set(CMAKE_CXX_STANDARD 20)
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
|
|
|
|
|
|
|
|
set(USE_SYSTEM_OCCT ON CACHE INTERNAL "")
|
2022-09-22 20:43:06 +05:00
|
|
|
|
2022-11-04 18:38:39 +05:00
|
|
|
include(${CMAKE_SOURCE_DIR}/cmake/glad.cmake)
|
2022-11-18 21:50:49 +05:00
|
|
|
include(${CMAKE_SOURCE_DIR}/cmake/stb.cmake)
|
2022-11-04 18:38:39 +05:00
|
|
|
include(${CMAKE_SOURCE_DIR}/cmake/imgui.cmake)
|
2022-11-18 21:50:49 +05:00
|
|
|
include(${CMAKE_SOURCE_DIR}/cmake/occt.cmake)
|
|
|
|
|
2022-11-04 18:38:39 +05:00
|
|
|
|
2022-09-22 20:43:06 +05:00
|
|
|
project(
|
|
|
|
hyporo
|
|
|
|
VERSION 0.20.0
|
|
|
|
LANGUAGES CXX
|
|
|
|
)
|
|
|
|
|
|
|
|
option(WITH_GTESTS "Enable GTest unit testing" ON)
|
|
|
|
|
|
|
|
enable_testing()
|
|
|
|
|
|
|
|
if(WITH_GTESTS)
|
|
|
|
include(${CMAKE_SOURCE_DIR}/cmake/googletest.cmake)
|
|
|
|
include(GoogleTest)
|
|
|
|
endif()
|
|
|
|
|
2022-10-05 21:10:51 +05:00
|
|
|
|
2022-10-28 21:16:03 +05:00
|
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD 20)
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
|
2022-11-18 21:50:49 +05:00
|
|
|
add_definitions(-DPRECISION_DOUBLE)
|
2022-09-22 20:43:06 +05:00
|
|
|
|
|
|
|
add_subdirectory(source)
|
|
|
|
|
2022-11-29 12:52:33 +05:00
|
|
|
add_subdirectory(docs)
|