131 #here is the standard command for any system |
131 #here is the standard command for any system |
132 add_custom_command(OUTPUT "${EXECUTABLE_OUTPUT_PATH}/hwengine${CMAKE_EXECUTABLE_SUFFIX}" |
132 add_custom_command(OUTPUT "${EXECUTABLE_OUTPUT_PATH}/hwengine${CMAKE_EXECUTABLE_SUFFIX}" |
133 COMMAND "${pascal_compiler}" |
133 COMMAND "${pascal_compiler}" |
134 ARGS ${pascal_compiler_flags} |
134 ARGS ${pascal_compiler_flags} |
135 MAIN_DEPENDENCY ${hwengine_project} |
135 MAIN_DEPENDENCY ${hwengine_project} |
136 DEPENDS openalbridge ${engine_sources} |
136 DEPENDS ${engine_sources} |
137 ) |
137 ) |
138 ELSE() |
138 ELSE() |
139 #these are the two dependencies for building a universal binary on Mac OS X |
139 #these are the two dependencies for building a universal binary on Mac OS X |
140 add_custom_command(OUTPUT "${EXECUTABLE_OUTPUT_PATH}/hwengine.386" |
140 add_custom_command(OUTPUT "${EXECUTABLE_OUTPUT_PATH}/hwengine.386" |
141 COMMAND "ppc386" |
141 COMMAND "ppc386" |
142 ARGS ${pascal_compiler_flags} -ohwengine.386 -CfSSE2 |
142 ARGS ${pascal_compiler_flags} -ohwengine.386 -CfSSE2 |
143 MAIN_DEPENDENCY ${hwengine_project} |
143 MAIN_DEPENDENCY ${hwengine_project} |
144 DEPENDS openalbridge ${engine_sources} |
144 DEPENDS ${engine_sources} |
145 ) |
145 ) |
146 add_custom_target(hwengine.386 ALL DEPENDS "${EXECUTABLE_OUTPUT_PATH}/hwengine.386") |
146 add_custom_target(hwengine.386 ALL DEPENDS "${EXECUTABLE_OUTPUT_PATH}/hwengine.386") |
147 |
147 |
148 add_custom_command(OUTPUT "${EXECUTABLE_OUTPUT_PATH}/hwengine.ppc" |
148 add_custom_command(OUTPUT "${EXECUTABLE_OUTPUT_PATH}/hwengine.ppc" |
149 COMMAND "ppcppc" |
149 COMMAND "ppcppc" |
150 ARGS ${pascal_compiler_flags} -ohwengine.ppc |
150 ARGS ${pascal_compiler_flags} -ohwengine.ppc |
151 MAIN_DEPENDENCY ${hwengine_project} |
151 MAIN_DEPENDENCY ${hwengine_project} |
152 DEPENDS openalbridge ${engine_sources} |
152 DEPENDS ${engine_sources} |
153 ) |
153 ) |
154 add_custom_target(hwengine.ppc ALL DEPENDS "${EXECUTABLE_OUTPUT_PATH}/hwengine.ppc") |
154 add_custom_target(hwengine.ppc ALL DEPENDS "${EXECUTABLE_OUTPUT_PATH}/hwengine.ppc") |
155 |
155 |
156 #this is the command that bundles the two executables into one |
156 #this is the command that bundles the two executables into one |
157 add_custom_command(OUTPUT "${EXECUTABLE_OUTPUT_PATH}/hwengine" |
157 add_custom_command(OUTPUT "${EXECUTABLE_OUTPUT_PATH}/hwengine" |