updated on Sat Jan 21 20:03:50 UTC 2012
[aur-mirror.git] / oalwrapper-git / CMakeLists.txt
blob76d50c722364c36ffe40362766bd3b719a2b0f37
1 cmake_minimum_required (VERSION 2.6)
2 project (OALWrapper)
4 set(OALWrapper_VERSION_MAJOR 1)
5 set(OALWrapper_VERSION_MINOR 0)
7 include_directories(
8         ${CMAKE_CURRENT_SOURCE_DIR}/include 
10 file(GLOB_RECURSE all_sources
11     ${CMAKE_CURRENT_SOURCE_DIR}/sources/*.cpp
13 file(GLOB all_headers
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