1 cmake_minimum_required (VERSION 2.6)
4 set(OALWrapper_VERSION_MAJOR 1)
5 set(OALWrapper_VERSION_MINOR 0)
8 ${CMAKE_CURRENT_SOURCE_DIR}/include
10 file(GLOB_RECURSE all_sources
11 ${CMAKE_CURRENT_SOURCE_DIR}/sources/*.cpp
14 ${CMAKE_CURRENT_SOURCE_DIR}/include/OALWrapper/*.h
17 add_library(OALWrapper SHARED ${all_sources})
18 set_target_properties (OALWrapper PROPERTIES
19 VERSION ${OALWrapper_VERSION_MAJOR}.${OALWrapper_VERSION_MINOR}
20 SOVERSION ${OALWrapper_VERSION_MAJOR}
23 #alut -> openal, vorbisfile -> vorbis, SDL for threading
24 target_link_libraries(OALWrapper alut vorbisfile SDL)
26 install(FILES ${all_headers}
27 DESTINATION include/OALWrapper
30 install(TARGETS OALWrapper
31 LIBRARY DESTINATION lib