equal
deleted
inserted
replaced
106 |
106 |
107 set(LIBRARY_OUTPUT_PATH ${EXECUTABLE_OUTPUT_PATH}) |
107 set(LIBRARY_OUTPUT_PATH ${EXECUTABLE_OUTPUT_PATH}) |
108 include_directories(${SDL_INCLUDE_DIR}) |
108 include_directories(${SDL_INCLUDE_DIR}) |
109 link_libraries(${SDL_LIBRARY}) |
109 link_libraries(${SDL_LIBRARY}) |
110 |
110 |
111 if(universal_build) |
111 #apparently this variable is not exported here |
112 #apparently this variable is not exported here |
112 set(CMAKE_OSX_ARCHITECTURES "i386;ppc7400") |
113 set(CMAKE_OSX_ARCHITECTURES "i386;ppc7400") |
|
114 endif() |
|
115 |
113 |
116 add_library (SDLmain STATIC SDLMain.m) |
114 add_library (SDLmain STATIC SDLMain.m) |
117 set(engine_sources SDLmain ${engine_sources}) |
115 set(engine_sources SDLmain ${engine_sources}) |
118 ENDIF(APPLE) |
116 ENDIF(APPLE) |
119 |
117 |
120 IF(build_type MATCHES "standard") |
118 IF(NOT APPLE) |
121 #here is the standard command for any system |
119 #here is the standard command for any system |
122 add_custom_command(OUTPUT "${EXECUTABLE_OUTPUT_PATH}/hwengine${CMAKE_EXECUTABLE_SUFFIX}" |
120 add_custom_command(OUTPUT "${EXECUTABLE_OUTPUT_PATH}/hwengine${CMAKE_EXECUTABLE_SUFFIX}" |
123 COMMAND "${pascal_compiler}" |
121 COMMAND "${pascal_compiler}" |
124 ARGS ${pascal_compiler_flags} |
122 ARGS ${pascal_compiler_flags} |
125 MAIN_DEPENDENCY ${hwengine_project} |
123 MAIN_DEPENDENCY ${hwengine_project} |