Skip to content
Snippets Groups Projects
Commit abec46f6 authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Allow control of modules in cmake

parent cf9b2961
No related branches found
No related tags found
No related merge requests found
...@@ -11,6 +11,10 @@ include(GNUInstallDirs) ...@@ -11,6 +11,10 @@ include(GNUInstallDirs)
include(CTest) include(CTest)
enable_testing() enable_testing()
option(BUILD_VISION "Enable the vision component" ON)
option(BUILD_RECONSTRUCT "Enable the reconstruction component" ON)
option(BUILD_RENDERER "Enable the renderer component" ON)
set(THREADS_PREFER_PTHREAD_FLAG ON) set(THREADS_PREFER_PTHREAD_FLAG ON)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/") set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/")
...@@ -118,10 +122,20 @@ endif() ...@@ -118,10 +122,20 @@ endif()
SET(CMAKE_USE_RELATIVE_PATHS ON) SET(CMAKE_USE_RELATIVE_PATHS ON)
add_subdirectory(common/cpp) add_subdirectory(common/cpp)
add_subdirectory(renderer)
add_subdirectory(net) add_subdirectory(net)
add_subdirectory(vision)
add_subdirectory(reconstruct) if (BUILD_RENDERER)
add_subdirectory(renderer)
set(HAVE_RENDER)
endif()
if (BUILD_VISION)
add_subdirectory(vision)
endif()
if (BUILD_RECONSTRUCT)
add_subdirectory(reconstruct)
endif()
### Generate Build Configuration Files ========================================= ### Generate Build Configuration Files =========================================
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
#cmakedefine HAVE_URIPARSESINGLE #cmakedefine HAVE_URIPARSESINGLE
#cmakedefine HAVE_CUDA #cmakedefine HAVE_CUDA
#cmakedefine HAVE_OPENCV #cmakedefine HAVE_OPENCV
#cmakedefine HAVE_RENDER
extern const char *FTL_VERSION_LONG; extern const char *FTL_VERSION_LONG;
extern const char *FTL_VERSION; extern const char *FTL_VERSION;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment