hedgewars/CMakeLists.txt
changeset 3067 330e60f5dde8
parent 2990 b62e567f17b9
child 3387 733f4001b8b9
equal deleted inserted replaced
3066:5c0efa437728 3067:330e60f5dde8
     1 configure_file(${hedgewars_SOURCE_DIR}/hedgewars/config.inc.in ${CMAKE_CURRENT_BINARY_DIR}/config.inc)
       
     2 
       
     3 find_package(SDL)
     1 find_package(SDL)
     4 find_package(SDL_image)
     2 find_package(SDL_image)
     5 find_package(SDL_net)
     3 find_package(SDL_net)
     6 find_package(SDL_ttf)
     4 find_package(SDL_ttf)
     7 find_package(SDL_mixer)
     5 find_package(SDL_mixer)
     8 find_package(Lua)
     6 find_package(Lua)
       
     7 
       
     8 configure_file(${hedgewars_SOURCE_DIR}/hedgewars/config.inc.in ${CMAKE_CURRENT_BINARY_DIR}/config.inc)
     9 
     9 
    10 #find which version of SDL_image and SDL_mixer we have (for IMG_Init and Mix_Init)
    10 #find which version of SDL_image and SDL_mixer we have (for IMG_Init and Mix_Init)
    11 #if the headers are not installed, the newer apis won't be activated
    11 #if the headers are not installed, the newer apis won't be activated
    12 find_file(sdlmixer_h SDL_mixer.h ${SDLMIXER_INCLUDE_DIR})
    12 find_file(sdlmixer_h SDL_mixer.h ${SDLMIXER_INCLUDE_DIR})
    13 if(sdlmixer_h)
    13 if(sdlmixer_h)