File tree 1 file changed +9
-13
lines changed
1 file changed +9
-13
lines changed Original file line number Diff line number Diff line change @@ -53,23 +53,19 @@ add_subdirectory(src)
53
53
# Testing
54
54
if (CMAKE_PROJECT_NAME STREQUAL "Uri" OR CPP-NETLIB_BUILD_TESTS)
55
55
enable_testing ()
56
- if (NOT DEFINED GTEST_FOUND)
57
- find_package (GTest REQUIRED)
58
- endif ()
56
+ find_package (GTest REQUIRED)
59
57
add_subdirectory (test )
60
58
endif ()
61
59
62
60
# Documentation
63
- if (NOT DOXYGEN_FOUND)
64
- find_package (Doxygen)
65
- if (DOXYGEN_FOUND)
66
- configure_file (${CMAKE_CURRENT_SOURCE_DIR} /Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR} /Doxyfile @ONLY)
67
- add_custom_target (doc
68
- ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR} /Doxyfile
69
- WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
70
- COMMENT "Generating API documentation with Doxygen" VERBATIM )
71
- endif (DOXYGEN_FOUND)
72
- endif (NOT DOXYGEN_FOUND)
61
+ find_package (Doxygen)
62
+ if (DOXYGEN_FOUND)
63
+ configure_file (${CMAKE_CURRENT_SOURCE_DIR} /Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR} /Doxyfile @ONLY)
64
+ add_custom_target (doc
65
+ ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR} /Doxyfile
66
+ WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
67
+ COMMENT "Generating API documentation with Doxygen" VERBATIM )
68
+ endif (DOXYGEN_FOUND)
73
69
74
70
#propagate sources to parent scope for one-lib-build
75
71
set (Uri_SRCS ${Uri_SRCS} PARENT_SCOPE)
You can’t perform that action at this time.
0 commit comments