hyporo-cpp/CMakeLists.txt

31 lines
548 B
CMake
Raw Normal View History

2022-09-22 20:43:06 +05:00
cmake_minimum_required (VERSION 3.16)
2022-12-06 23:52:49 +05:00
# Dependencies
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-18 21:50:49 +05:00
2022-11-04 18:38:39 +05:00
2022-12-06 23:52:49 +05:00
# Main project
2022-09-22 20:43:06 +05:00
project(
2022-12-06 23:52:49 +05:00
project-hyporo
VERSION 0.10.0
2022-09-22 20:43:06 +05:00
LANGUAGES CXX
)
option(WITH_GTESTS "Enable GTest unit testing" ON)
enable_testing()
if(WITH_GTESTS)
2022-12-06 23:52:49 +05:00
option(INSTALL_GMOCK "" OFF)
option(INSTALL_GTEST "" OFF)
2022-09-22 20:43:06 +05:00
include(${CMAKE_SOURCE_DIR}/cmake/googletest.cmake)
include(GoogleTest)
endif()
2022-10-05 21:10:51 +05:00
2022-09-22 20:43:06 +05:00
add_subdirectory(source)
2022-12-06 23:52:49 +05:00
#add_subdirectory(docs)