hedgewars/CMakeLists.txt
changeset 2924 908851e59958
parent 2822 0533562bc3a4
child 2929 dd4efe601bc6
equal deleted inserted replaced
2923:e33ecd95aa1a 2924:908851e59958
     1 configure_file(${hedgewars_SOURCE_DIR}/hedgewars/proto.inc.in ${CMAKE_CURRENT_BINARY_DIR}/proto.inc)
     1 configure_file(${hedgewars_SOURCE_DIR}/hedgewars/config.inc.in ${CMAKE_CURRENT_BINARY_DIR}/config.inc)
     2 
     2 
     3 find_package(SDL)
     3 find_package(SDL)
     4 find_package(SDL_image)
     4 find_package(SDL_image)
     5 find_package(SDL_net)
     5 find_package(SDL_net)
     6 find_package(SDL_ttf)
     6 find_package(SDL_ttf)
     7 find_package(SDL_mixer)
     7 find_package(SDL_mixer)
       
     8 find_package(Lua)
     8 
     9 
     9 #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)
    10 #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
    11 find_file(sdlmixer_h SDL_mixer.h ${SDLMIXER_INCLUDE_DIR})
    12 find_file(sdlmixer_h SDL_mixer.h ${SDLMIXER_INCLUDE_DIR})
    12 if(sdlmixer_h)
    13 if(sdlmixer_h)
    71 	CCHandlers.inc
    72 	CCHandlers.inc
    72 	GSHandlers.inc
    73 	GSHandlers.inc
    73 	HHHandlers.inc
    74 	HHHandlers.inc
    74 	SinTable.inc
    75 	SinTable.inc
    75 	options.inc
    76 	options.inc
    76 	${CMAKE_CURRENT_BINARY_DIR}/proto.inc
    77 	${CMAKE_CURRENT_BINARY_DIR}/config.inc
    77 	)
    78 	)
    78 
    79 
    79 find_program(fpc_executable ${fpc_tryexe})
    80 find_program(fpc_executable ${fpc_tryexe})
    80 
    81 
    81 if(fpc_executable)
    82 if(fpc_executable)