PageRenderTime 16ms CodeModel.GetById 10ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/player/CMakeLists.txt

http://game-music-emu.googlecode.com/
CMake | 22 lines | 16 code | 5 blank | 1 comment | 1 complexity | 2bc9a720b61c27133a54ee21d26aa26f MD5 | raw file
 1find_package(SDL QUIET)
 2
 3set(player_SRCS Audio_Scope.cpp
 4                Audio_Scope.h
 5                Music_Player.cpp
 6                Music_Player.h
 7                player.cpp)
 8
 9if(SDL_FOUND)
10    message(" ** SDL library located, player demo is available to be built in the /player directory")
11
12    include_directories(${SDL_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}
13        "${CMAKE_HOME_DIRECTORY}" "${CMAKE_HOME_DIRECTORY}/gme"
14        "${CMAKE_BINARY_DIR}/gme")
15
16    add_executable(gme_player ${player_SRCS})
17    target_link_libraries(gme_player ${SDL_LIBRARY} gme)
18
19    # Is not to be installed though
20else()
21    message("SDL library not found, disabling player demo build")
22endif()