this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add ability for SDL_gpu repo to be added as a dependency in a CMake project.

+16 -13
+1 -1
.gitignore
··· 1 1 CMakeCache.txt 2 2 CMakeFiles 3 3 Makefile 4 + build/ 4 5 *.cmake 5 6 *-demo 6 7 *-test ··· 8 9 *.so 9 10 *.o 10 11 11 -
+13 -10
CMakeLists.txt
··· 100 100 option(BUILD_TESTS "Build SDL_gpu test programs" OFF) 101 101 option(BUILD_VIDEO_TEST "Build SDL_gpu video test program (requires FFMPEG)" OFF) 102 102 option(BUILD_TOOLS "Build SDL_gpu tool programs" OFF) 103 + option(BUILD_DOCS "Build SDL_gpu documentation" OFF) 103 104 option(USE_SDL1 "Use SDL 1.2 headers and library instead of SDL 2" OFF) 104 105 option(DISABLE_OPENGL "Disable OpenGL renderers. Overrides specific OpenGL renderer flags." ${DEFAULT_DISABLE_OPENGL}) 105 106 option(DISABLE_GLES "Disable OpenGLES renderers. Overrides specific GLES renderer flags." ${DEFAULT_DISABLE_GLES}) ··· 323 324 endif(NOT STBI_FOUND OR NOT STBI_WRITE_FOUND) 324 325 325 326 # add a target to generate API documentation with Doxygen 326 - find_package(Doxygen) 327 - if(DOXYGEN_FOUND) 328 - set(DOXYGEN_INPUT ${CMAKE_SOURCE_DIR}/include ${CMAKE_SOURCE_DIR}/src) 329 - configure_file(${CMAKE_SOURCE_DIR}/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile @ONLY) 330 - add_custom_target(doc 331 - ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile 332 - WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} 333 - COMMENT "Generating API documentation with Doxygen" VERBATIM 334 - ) 335 - endif(DOXYGEN_FOUND) 327 + if (BUILD_DOCS) 328 + find_package(Doxygen) 329 + if(DOXYGEN_FOUND) 330 + set(DOXYGEN_INPUT ${CMAKE_CURRENT_SOURCE_DIR}/include ${CMAKE_CURRENT_SOURCE_DIR}/src) 331 + configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile @ONLY) 332 + add_custom_target(doc 333 + ` ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile 334 + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} 335 + COMMENT "Generating API documentation with Doxygen" VERBATIM 336 + ) 337 + endif(DOXYGEN_FOUND) 338 + endif (BUILD_DOCS) 336 339 337 340 add_definitions("-Wall -pedantic") 338 341
+2 -2
src/CMakeLists.txt
··· 110 110 configure_file(${INC_FILE} ${CMAKE_BINARY_DIR}/${OUTPUT_DIR}/include/${BASE} COPYONLY) 111 111 endforeach(INC_FILE) 112 112 113 - configure_file(${CMAKE_SOURCE_DIR}/LICENSE.txt ${CMAKE_BINARY_DIR}/${OUTPUT_DIR}/LICENSE.txt COPYONLY) 114 - configure_file(${CMAKE_SOURCE_DIR}/README.md ${CMAKE_BINARY_DIR}/${OUTPUT_DIR}/README.md COPYONLY) 113 + configure_file(../LICENSE.txt ${CMAKE_BINARY_DIR}/${OUTPUT_DIR}/LICENSE.txt COPYONLY) 114 + configure_file(../README.md ${CMAKE_BINARY_DIR}/${OUTPUT_DIR}/README.md COPYONLY) 115 115 116 116 # Build the shared library (.so or .dll) 117 117 if(BUILD_SHARED)