Browse Source

- prepared doxygen target, but newer cmake is needed

master
parent
commit
d4ac890a1e
1 changed files with 28 additions and 4 deletions
  1. +28
    -4
      src/CMakeLists.txt

+ 28
- 4
src/CMakeLists.txt View File

@@ -7,6 +7,32 @@ include_directories("lib/")
include (CheckSymbolExists)
include (CheckFunctionExists)


find_package(Doxygen)
option(BUILD_DOCUMENTATION "Create and install the HTML based API documentation (requires Doxygen)" ${DOXYGEN_FOUND})
if(BUILD_DOCUMENTATION)
if(NOT DOXYGEN_FOUND)
message(FATAL_ERROR "Doxygen is needed to build the documentation.")
endif()

#doxygen_add_docs(targetName
#${CMAKE_CURRENT_SOURCE_DIR}
#)

message("Doxygen build started.")

add_custom_target(
doc ALL
#COMMAND $<$<CONFIG:Release>:${DOXYGEN_EXECUTABLE} ${doxyfile_in}>
COMMAND $<$<CONFIG:Release>:${DOXYGEN_EXECUTABLE}>
#WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/doc
COMMENT "Generating API documentation with Doxygen"
VERBATIM
)

# install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html DESTINATION share/doc)
endif()

find_package(Boost 1.47 COMPONENTS filesystem REQUIRED)
message(status "** Boost Include: ${Boost_INCLUDE_DIR}")
message(status "** Boost Libraries: ${Boost_LIBRARY_DIRS}")
@@ -26,7 +52,7 @@ link_directories(${OPENSSL_LIBRARIES})
#include_directories(${POCO_INCLUDE_DIR})
#link_directories(${POCO_LIBRARIES})

file( GLOB libcbag_SOURCES_LIB
file( GLOB libcbag_SOURCES_LIB
"lib/*.cpp"
)

@@ -36,12 +62,10 @@ message("Curl libraries: ${CURL_LIBRARIES}")
include_directories(${CURL_INCLUDE_DIR})
link_directories(${CURL_LIBRARIES})

#file( GLOB libcbag_SOURCES_LIB
#file( GLOB libcbag_SOURCES_LIB
# "${PROJECT_SOURCE_DIR}/lib/*.cpp"
# )



add_library(cbag ${libcbag_SOURCES_LIB} )
target_include_directories(cbag PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})



Loading…
Cancel
Save