find_package(SDL QUIET)

set(player_SRCS Audio_Scope.cpp
                Audio_Scope.h
                Music_Player.cpp
                Music_Player.h
                player.cpp)

if(SDL_FOUND)
    message(" ** SDL library located, player demo is available to be built in the /player directory")

    include_directories(${SDL_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}
        "${CMAKE_HOME_DIRECTORY}" "${CMAKE_HOME_DIRECTORY}/gme")

    add_executable(gme_player ${player_SRCS})
    target_link_libraries(gme_player ${SDL_LIBRARY} gme)

    # Is not to be installed though
else()
    message("SDL library not found, disabling player demo build")
endif()

find_package(SDL QUIET)

set(player_SRCS Audio_Scope.cpp
                Audio_Scope.h
                Music_Player.cpp
                Music_Player.h
                player.cpp)

if(SDL_FOUND)
    message(" ** SDL library located, player demo is available to be built in the /player directory")

    include_directories(${SDL_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}
        "${CMAKE_HOME_DIRECTORY}" "${CMAKE_HOME_DIRECTORY}/gme"
        "${CMAKE_BINARY_DIR}/gme")

    add_executable(gme_player ${player_SRCS})
    target_link_libraries(gme_player ${SDL_LIBRARY} gme)

    # Is not to be installed though
else()
    message("SDL library not found, disabling player demo build")
endif()

Build even when we haven't run make install yet (this catches the auto-generated gme_types.h)
Build even when we haven't run make install yet
(this catches the auto-generated gme_types.h)


git-svn-id: 942cda279fa71d4cb49d846bfbb2b7a883f487ee@13 ed62ecc2-ceed-11dd-a8b6-f5aca7b582bb
