hedgewars/CMakeLists.txt
changeset 2420 b7390a3040f8
parent 2413 d921d13a8546
child 2494 1e10a47cabea
equal deleted inserted replaced
2419:dbaaba09146d 2420:b7390a3040f8
     1 configure_file(${hedgewars_SOURCE_DIR}/hedgewars/proto.inc.in ${CMAKE_CURRENT_BINARY_DIR}/proto.inc)
     1 configure_file(${hedgewars_SOURCE_DIR}/hedgewars/proto.inc.in ${CMAKE_CURRENT_BINARY_DIR}/proto.inc)
     2 
     2 
     3 find_package(SDL REQUIRED)
     3 find_package(SDL)
     4 find_package(SDL_image REQUIRED)
     4 find_package(SDL_image)
     5 find_package(SDL_net REQUIRED)
     5 find_package(SDL_net)
     6 find_package(SDL_ttf REQUIRED)
     6 find_package(SDL_ttf)
     7 
     7 
     8 
     8 
     9 #SOURCE AND PROGRAMS SECTION 
     9 #SOURCE AND PROGRAMS SECTION 
    10 set(fpc_tryexe fpc)
    10 set(fpc_tryexe fpc)
    11 set(hwengine_project ${hedgewars_SOURCE_DIR}/hedgewars/hwengine.pas)
    11 set(hwengine_project ${hedgewars_SOURCE_DIR}/hedgewars/hwengine.pas)
   114 
   114 
   115 
   115 
   116 #DEPENDECIES AND EXECUTABLES SECTION
   116 #DEPENDECIES AND EXECUTABLES SECTION
   117 IF(APPLE)
   117 IF(APPLE)
   118 #let's build sdlmain, which is absent from the framework
   118 #let's build sdlmain, which is absent from the framework
       
   119 	find_package(SDL REQUIRED)
       
   120 
   119 	set(LIBRARY_OUTPUT_PATH ${EXECUTABLE_OUTPUT_PATH})
   121 	set(LIBRARY_OUTPUT_PATH ${EXECUTABLE_OUTPUT_PATH})
   120 	include_directories(${SDL_INCLUDE_DIR})
   122 	include_directories(${SDL_INCLUDE_DIR})
   121 	link_libraries(${SDL_LIBRARY})
   123 	link_libraries(${SDL_LIBRARY})
   122 
   124 
   123 	add_library (SDLmain STATIC SDLMain.m)
   125 	add_library (SDLmain STATIC SDLMain.m)