| ... | @@ -15,8 +15,6 @@ if(CCACHE_FOUND) |
... | @@ -15,8 +15,6 @@ if(CCACHE_FOUND) |
|
|
set( CMAKE_CXX_COMPILER_LAUNCHER ccache )
|
|
set( CMAKE_CXX_COMPILER_LAUNCHER ccache )
|
|
|
endif()
|
|
endif()
|
|
|
|
|
|
|
|
option(ENABLE_CSG "Build with CSG support" OFF)
|
|
|
|
|
|
|
|
|
|
# Download automatically, you can also just copy the conan.cmake file
|
|
# Download automatically, you can also just copy the conan.cmake file
|
|
|
if(NOT EXISTS "${CMAKE_BINARY_DIR}/conan.cmake")
|
|
if(NOT EXISTS "${CMAKE_BINARY_DIR}/conan.cmake")
|
|
|
message(STATUS "Downloading conan.cmake from https://github.com/conan-io/cmake-conan")
|
|
message(STATUS "Downloading conan.cmake from https://github.com/conan-io/cmake-conan")
|
| ... | @@ -37,7 +35,9 @@ include(Catch) |
... | @@ -37,7 +35,9 @@ include(Catch) |
|
|
|
|
|
|
|
add_subdirectory(src/csg)
|
|
add_subdirectory(src/csg)
|
|
|
|
|
|
|
|
target_include_directories(csg PRIVATE
|
|
target_include_directories(csg
|
|
|
${CONAN_INCLUDE_DIRS_PEGTL})
|
|
PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include
|
|
|
|
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src ${CONAN_INCLUDE_DIRS_PEGTL}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_compile_features(csg PRIVATE cxx_std_17) |
|
target_compile_features(csg PRIVATE cxx_std_17) |