diff options
-rw-r--r-- | src/CMakeLists.txt | 7 | ||||
-rw-r--r-- | test/CMakeLists.txt | 6 |
2 files changed, 10 insertions, 3 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index acba8a4..3c80afd 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -162,8 +162,11 @@ target_link_libraries(uca # --- Build documentation ----------------------------------------------------- +if (NOT DEFINED WITH_REFERENCE) + set(WITH_REFERENCE TRUE) +endif() pkg_check_modules(GTK_DOC gtk-doc) -if(GTK_DOC_FOUND) +if(GTK_DOC_FOUND AND WITH_REFERENCE) option(WITH_GTK_DOC "Build documentation" ON) if (WITH_GTK_DOC) set(docs_dir "${CMAKE_CURRENT_BINARY_DIR}") @@ -245,7 +248,7 @@ if(GTK_DOC_FOUND) install(FILES ${reference_files} DESTINATION share/gtk-doc/html/uca) endif() -endif(GTK_DOC_FOUND) +endif(GTK_DOC_FOUND AND WITH_REFERENCE) # --- Install target ---------------------------------------------------------- diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 2ddc464..5797621 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -48,7 +48,11 @@ target_link_libraries(grab-async uca ${GLIB2_LIBRARIES} ${GOBJECT2_LIBRARIES}) add_executable(grab_pylon grab_pylon.c) target_link_libraries(grab_pylon uca ${GLIB2_LIBRARIES} ${GOBJECT2_LIBRARIES}) -if (GTK2_FOUND) +if (NOT DEFINED WITH_CONTROL_GUI) + set(WITH_CONTROL_GUI TRUE) +endif() + +if (GTK2_FOUND AND WITH_CONTROL_GUI) include_directories(${GTK2_INCLUDE_DIRS}) add_executable(control |