Commit 649eec6d authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Add option to enable/disable documentation + fix install path of doc.

parent 244f29dc
...@@ -43,6 +43,7 @@ option(ENABLE_AUTOMATED "Compile BCUnit automated interface" ON) ...@@ -43,6 +43,7 @@ option(ENABLE_AUTOMATED "Compile BCUnit automated interface" ON)
option(ENABLE_BASIC "Compile BCUnit basic interface" ON) option(ENABLE_BASIC "Compile BCUnit basic interface" ON)
option(ENABLE_CONSOLE "Compile BCUnit console interface" ON) option(ENABLE_CONSOLE "Compile BCUnit console interface" ON)
option(ENABLE_CURSES "Compile BCUnit curses interface" OFF) option(ENABLE_CURSES "Compile BCUnit curses interface" OFF)
option(ENABLE_DOC "Install BCUnit documentation" OFF)
option(ENABLE_EXAMPLES "Compile BCUnit example programs" OFF) option(ENABLE_EXAMPLES "Compile BCUnit example programs" OFF)
option(ENABLE_TEST "Compile BCUnit internal test program" OFF) option(ENABLE_TEST "Compile BCUnit internal test program" OFF)
option(ENABLE_MEMTRACE "Enable BCUnit internal memory tracking" OFF) option(ENABLE_MEMTRACE "Enable BCUnit internal memory tracking" OFF)
...@@ -91,8 +92,10 @@ include_directories( ...@@ -91,8 +92,10 @@ include_directories(
add_subdirectory(BCUnit) add_subdirectory(BCUnit)
add_subdirectory(doc) if(ENABLE_DOC)
add_subdirectory(Man) add_subdirectory(doc)
add_subdirectory(Man)
endif()
add_subdirectory(Share) add_subdirectory(Share)
if(ENABLE_EXAMPLES) if(ENABLE_EXAMPLES)
add_subdirectory(Examples) add_subdirectory(Examples)
......
...@@ -33,7 +33,7 @@ set(DOC_FILES ...@@ -33,7 +33,7 @@ set(DOC_FILES
) )
install(FILES ${DOC_FILES} install(FILES ${DOC_FILES}
DESTINATION doc/BCUnit DESTINATION share/doc/BCUnit
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
) )
...@@ -42,6 +42,6 @@ file(GLOB HEADER_FILES "../BCUnit/Headers/*.h") ...@@ -42,6 +42,6 @@ file(GLOB HEADER_FILES "../BCUnit/Headers/*.h")
list(APPEND HEADER_FILES "../BCUnit/Sources/Win/Win.h") list(APPEND HEADER_FILES "../BCUnit/Sources/Win/Win.h")
install(FILES ${HEADER_FILES} install(FILES ${HEADER_FILES}
DESTINATION doc/BCUnit/headers DESTINATION share/doc/BCUnit/headers
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
) )
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment