author | unc0rr |
Fri, 26 Jun 2009 19:40:10 +0000 | |
changeset 2197 | a02adcdaa939 |
parent 2194 | 1597710c6118 |
child 2200 | 8192be6e3aef |
permissions | -rw-r--r-- |
2191 | 1 |
find_package(OpenAL REQUIRED) |
2 |
include_directories(${OPENAL_INCLUDE_DIR}) |
|
3 |
||
4 |
#add_library (openalbridge openalwrap.c loaders.c endianness.c wrappers.c) |
|
5 |
exec_program(${CMAKE_C_COMPILER} |
|
2194
1597710c6118
koda adds threading for fadein/out. Untested under windows, but works beautifully under Linux (and presumably OSX, right koda?)
nemo
parents:
2191
diff
changeset
|
6 |
ARGS ${arch_to_build} -o ${EXECUTABLE_OUTPUT_PATH}/loaders.o -c ${hedgewars_SOURCE_DIR}/openalbridge/loaders.c -I ${OPENAL_INCLUDE_DIR} -O2 -w |
2191 | 7 |
OUTPUT_VARIABLE noout |
8 |
) |
|
9 |
exec_program(${CMAKE_C_COMPILER} |
|
2194
1597710c6118
koda adds threading for fadein/out. Untested under windows, but works beautifully under Linux (and presumably OSX, right koda?)
nemo
parents:
2191
diff
changeset
|
10 |
ARGS ${arch_to_build} -o ${EXECUTABLE_OUTPUT_PATH}/endianness.o -c ${hedgewars_SOURCE_DIR}/openalbridge/endianness.c -I ${OPENAL_INCLUDE_DIR} -O2 -w |
2191 | 11 |
OUTPUT_VARIABLE noout |
12 |
) |
|
13 |
||
14 |
exec_program(${CMAKE_C_COMPILER} |
|
2194
1597710c6118
koda adds threading for fadein/out. Untested under windows, but works beautifully under Linux (and presumably OSX, right koda?)
nemo
parents:
2191
diff
changeset
|
15 |
ARGS ${arch_to_build} -o ${EXECUTABLE_OUTPUT_PATH}/openalwrap.o -c ${hedgewars_SOURCE_DIR}/openalbridge/openalwrap.c -I ${OPENAL_INCLUDE_DIR} -O2 -w |
2191 | 16 |
OUTPUT_VARIABLE noout |
17 |
) |
|
18 |
||
19 |
exec_program(${CMAKE_C_COMPILER} |
|
2194
1597710c6118
koda adds threading for fadein/out. Untested under windows, but works beautifully under Linux (and presumably OSX, right koda?)
nemo
parents:
2191
diff
changeset
|
20 |
ARGS ${arch_to_build} -o ${EXECUTABLE_OUTPUT_PATH}/wrappers.o -c ${hedgewars_SOURCE_DIR}/openalbridge/wrappers.c -I ${OPENAL_INCLUDE_DIR} -O2 -w |
2191 | 21 |
OUTPUT_VARIABLE noout |
22 |
) |
|
23 |
exec_program(${CMAKE_AR} |
|
24 |
ARGS -rvu ${EXECUTABLE_OUTPUT_PATH}/libopenalbridge.a ${EXECUTABLE_OUTPUT_PATH}/loaders.o ${EXECUTABLE_OUTPUT_PATH}/endianness.o ${EXECUTABLE_OUTPUT_PATH}/openalwrap.o ${EXECUTABLE_OUTPUT_PATH}/wrappers.o |
|
25 |
OUTPUT_VARIABLE noout |
|
26 |
) |
|
27 |
exec_program(${CMAKE_RANLIB} |
|
28 |
ARGS ${EXECUTABLE_OUTPUT_PATH}/libopenalbridge.a |
|
29 |
OUTPUT_VARIABLE noout |
|
30 |
) |
|
31 |