/player/CMakeLists.txt

http://game-music-emu.googlecode.com/ · CMake · 22 lines · 16 code · 5 blank · 1 comment · 1 complexity · 2bc9a720b61c27133a54ee21d26aa26f MD5 · raw file

  1. find_package(SDL QUIET)
  2. set(player_SRCS Audio_Scope.cpp
  3. Audio_Scope.h
  4. Music_Player.cpp
  5. Music_Player.h
  6. player.cpp)
  7. if(SDL_FOUND)
  8. message(" ** SDL library located, player demo is available to be built in the /player directory")
  9. include_directories(${SDL_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}
  10. "${CMAKE_HOME_DIRECTORY}" "${CMAKE_HOME_DIRECTORY}/gme"
  11. "${CMAKE_BINARY_DIR}/gme")
  12. add_executable(gme_player ${player_SRCS})
  13. target_link_libraries(gme_player ${SDL_LIBRARY} gme)
  14. # Is not to be installed though
  15. else()
  16. message("SDL library not found, disabling player demo build")
  17. endif()