file(GLOB SOURCES Source/*.cpp) if (RECASTNAVIGATION_STATIC) add_library(DebugUtils STATIC ${SOURCES}) else() add_library(DebugUtils SHARED ${SOURCES}) endif() add_library(RecastNavigation::DebugUtils ALIAS DebugUtils) set_target_properties(DebugUtils PROPERTIES DEBUG_POSTFIX -d) set(DebugUtils_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/Include") target_include_directories(DebugUtils PUBLIC "$" ) target_link_libraries(DebugUtils Recast Detour DetourTileCache ) set_target_properties(DebugUtils PROPERTIES SOVERSION ${SOVERSION} VERSION ${VERSION} COMPILE_PDB_OUTPUT_DIRECTORY . COMPILE_PDB_NAME "DebugUtils-d" ) install(TARGETS DebugUtils ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT library ) file(GLOB INCLUDES Include/*.h) install(FILES ${INCLUDES} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/recastnavigation) install(FILES "$/DebugUtils-d.pdb" CONFIGURATIONS "Debug" DESTINATION "lib")