Skip to content

Commit

Permalink
Move project CMake option
Browse files Browse the repository at this point in the history
  • Loading branch information
Zachary Ferguson committed Mar 29, 2024
1 parent a0db726 commit a3f84b4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ option(IPC_WITH_EXACT_CCD "Use exact CCD as a verification"
## Top level options
option(IPC_WITH_TESTS "Build unit tests using Catch2" ${IPC_TOPLEVEL_PROJECT})

# project-options
option(IPC_BUILD_DIAGNOSTIC_PROJECT "Build the Diagnostic sub-project" ${IPC_TOPLEVEL_PROJECT})
option(IPC_BUILD_MESH_PROCESSING_PROJECT "Build the MeshProcessing sub-project" ${IPC_TOPLEVEL_PROJECT})

################################################################################

### Configuration
Expand Down
7 changes: 1 addition & 6 deletions src/Projects/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
cmake_minimum_required(VERSION 3.9)

########################################################################################################
# project-options
option(IPC_BUILD_DIAGNOSTIC_PROJECT "Build the Diagnostic sub-project" ${IPC_TOPLEVEL_PROJECT})
option(IPC_BUILD_MESH_PROCESSING_PROJECT "Build the MeshProcessing sub-project" ${IPC_TOPLEVEL_PROJECT})
########################################################################################################

if(IPC_BUILD_DIAGNOSTIC_PROJECT)
add_subdirectory(Diagnostic)
endif()

if(IPC_BUILD_MESH_PROCESSING_PROJECT)
add_subdirectory(MeshProcessing)
endif()

0 comments on commit a3f84b4

Please sign in to comment.