29 lines
613 B
CMake
29 lines
613 B
CMake
file(GLOB SOURCES Source/*.cpp)
|
|
|
|
include_directories(../Detour/Include)
|
|
include_directories(Include)
|
|
|
|
if (RECASTNAVIGATION_STATIC)
|
|
add_library(DetourCrowd STATIC ${SOURCES})
|
|
else ()
|
|
add_library(DetourCrowd SHARED ${SOURCES})
|
|
endif ()
|
|
|
|
target_link_libraries(DetourCrowd
|
|
Detour
|
|
)
|
|
|
|
set_target_properties(DetourCrowd PROPERTIES
|
|
SOVERSION ${SOVERSION}
|
|
VERSION ${VERSION}
|
|
)
|
|
|
|
install(TARGETS DetourCrowd
|
|
ARCHIVE DESTINATION lib
|
|
LIBRARY DESTINATION lib
|
|
COMPONENT library
|
|
)
|
|
|
|
file(GLOB INCLUDES Include/*.h)
|
|
install(FILES ${INCLUDES} DESTINATION include)
|