summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/Modules/CMakeBuildUtilities.cmake16
1 files changed, 16 insertions, 0 deletions
diff --git a/Source/Modules/CMakeBuildUtilities.cmake b/Source/Modules/CMakeBuildUtilities.cmake
index d6e3e88..7d1e7da 100644
--- a/Source/Modules/CMakeBuildUtilities.cmake
+++ b/Source/Modules/CMakeBuildUtilities.cmake
@@ -376,3 +376,19 @@ if(BUILD_CursesDialog)
message(FATAL_ERROR "CMAKE_USE_SYSTEM_FORM in ON but CURSES_FORM_LIBRARY is not set!")
endif()
endif()
+
+#---------------------------------------------------------------------
+# Build cppdap library.
+if(CMake_ENABLE_CPPDAP)
+ if(CMAKE_USE_SYSTEM_CPPDAP)
+ find_package(cppdap CONFIG)
+ if(NOT cppdap_FOUND)
+ message(FATAL_ERROR
+ "CMAKE_USE_SYSTEM_CPPDAP is ON but a cppdap is not found!")
+ endif()
+ else()
+ add_subdirectory(Utilities/cmcppdap)
+ add_library(cppdap::cppdap ALIAS cmcppdap)
+ CMAKE_SET_TARGET_FOLDER(cppdap "Utilities/3rdParty")
+ endif()
+endif()