hedgewars/CMakeLists.txt
branchcmake_pascal
changeset 8840 e1be48f36b82
parent 8837 b9a15738711e
child 8843 843a9a405542
equal deleted inserted replaced
8837:b9a15738711e 8840:e1be48f36b82
   151     #(should be harmless on other platforms)
   151     #(should be harmless on other platforms)
   152     add_flag_append(CMAKE_Pascal_FLAGS "-XLAphysfs=${physfs_output_name}")
   152     add_flag_append(CMAKE_Pascal_FLAGS "-XLAphysfs=${physfs_output_name}")
   153     add_definitions(-dPHYSFS_INTERNAL)
   153     add_definitions(-dPHYSFS_INTERNAL)
   154 endif()
   154 endif()
   155 
   155 
   156 if(APPLE)
       
   157     add_flag_append(CMAKE_Pascal_FLAGS -Px86_64)
       
   158 endif()
       
   159 
       
   160 
       
   161 if(BUILD_ENGINE_LIBRARY)
       
   162 else(BUILD_ENGINE_LIBRARY)
       
   163 endif(BUILD_ENGINE_LIBRARY)
       
   164 
       
   165 
   156 
   166 if(HAVE_MIXINIT)
   157 if(HAVE_MIXINIT)
   167     add_definitions(-dSDL_MIXER_NEWER)
   158     add_definitions(-dSDL_MIXER_NEWER)
   168 endif(HAVE_MIXINIT)
   159 endif(HAVE_MIXINIT)
   169 
   160 
   176 #SOURCE AND PROGRAMS SECTION
   167 #SOURCE AND PROGRAMS SECTION
   177 if(BUILD_ENGINE_LIBRARY)
   168 if(BUILD_ENGINE_LIBRARY)
   178     message(${WARNING} "Engine will be built as library (experimental)")
   169     message(${WARNING} "Engine will be built as library (experimental)")
   179     if(APPLE AND current_macosx_version VERSION_GREATER "10.5")
   170     if(APPLE AND current_macosx_version VERSION_GREATER "10.5")
   180         # due to compiler/linker issues on Max OS X 10.6 -k-no_order_inits is needed to avoid linking fail
   171         # due to compiler/linker issues on Max OS X 10.6 -k-no_order_inits is needed to avoid linking fail
   181         add_flag_append(CMAKE_Pascal_FLAGS "-k-no_order_inits")
   172         add_flag_prepend(CMAKE_Pascal_FLAGS "-k-no_order_inits")
   182     endif()
   173     endif()
   183 
   174 
   184     #workaround for missing <TARGET> support during object generation
   175     #workaround for missing <TARGET> support during object generation
   185     set(engine_output_name "${CMAKE_SHARED_LIBRARY_PREFIX}hwengine${CMAKE_SHARED_LIBRARY_SUFFIX}")
   176     set(engine_output_name "${CMAKE_SHARED_LIBRARY_PREFIX}hwengine${CMAKE_SHARED_LIBRARY_SUFFIX}")
   186     set(destination_dir ${target_library_install_dir})
   177     set(destination_dir ${target_library_install_dir})