openalbridge/CMakeLists.txt
author unc0rr
Fri, 26 Jun 2009 19:40:10 +0000
changeset 2197 a02adcdaa939
parent 2194 1597710c6118
child 2200 8192be6e3aef
permissions -rw-r--r--
Some work on camera
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2191
20c62f787a4d koda's OpenAL conversion:
unc0rr
parents:
diff changeset
     1
find_package(OpenAL REQUIRED)
20c62f787a4d koda's OpenAL conversion:
unc0rr
parents:
diff changeset
     2
include_directories(${OPENAL_INCLUDE_DIR})
20c62f787a4d koda's OpenAL conversion:
unc0rr
parents:
diff changeset
     3
20c62f787a4d koda's OpenAL conversion:
unc0rr
parents:
diff changeset
     4
#add_library (openalbridge openalwrap.c loaders.c endianness.c wrappers.c)
20c62f787a4d koda's OpenAL conversion:
unc0rr
parents:
diff changeset
     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
20c62f787a4d koda's OpenAL conversion:
unc0rr
parents:
diff changeset
     7
			OUTPUT_VARIABLE noout
20c62f787a4d koda's OpenAL conversion:
unc0rr
parents:
diff changeset
     8
)
20c62f787a4d koda's OpenAL conversion:
unc0rr
parents:
diff changeset
     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
20c62f787a4d koda's OpenAL conversion:
unc0rr
parents:
diff changeset
    11
	OUTPUT_VARIABLE noout
20c62f787a4d koda's OpenAL conversion:
unc0rr
parents:
diff changeset
    12
)
20c62f787a4d koda's OpenAL conversion:
unc0rr
parents:
diff changeset
    13
20c62f787a4d koda's OpenAL conversion:
unc0rr
parents:
diff changeset
    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
20c62f787a4d koda's OpenAL conversion:
unc0rr
parents:
diff changeset
    16
			OUTPUT_VARIABLE noout
20c62f787a4d koda's OpenAL conversion:
unc0rr
parents:
diff changeset
    17
)
20c62f787a4d koda's OpenAL conversion:
unc0rr
parents:
diff changeset
    18
20c62f787a4d koda's OpenAL conversion:
unc0rr
parents:
diff changeset
    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
20c62f787a4d koda's OpenAL conversion:
unc0rr
parents:
diff changeset
    21
			OUTPUT_VARIABLE noout
20c62f787a4d koda's OpenAL conversion:
unc0rr
parents:
diff changeset
    22
			)
20c62f787a4d koda's OpenAL conversion:
unc0rr
parents:
diff changeset
    23
		exec_program(${CMAKE_AR}
20c62f787a4d koda's OpenAL conversion:
unc0rr
parents:
diff changeset
    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 
20c62f787a4d koda's OpenAL conversion:
unc0rr
parents:
diff changeset
    25
			OUTPUT_VARIABLE noout
20c62f787a4d koda's OpenAL conversion:
unc0rr
parents:
diff changeset
    26
			)
20c62f787a4d koda's OpenAL conversion:
unc0rr
parents:
diff changeset
    27
		exec_program(${CMAKE_RANLIB}
20c62f787a4d koda's OpenAL conversion:
unc0rr
parents:
diff changeset
    28
			ARGS ${EXECUTABLE_OUTPUT_PATH}/libopenalbridge.a
20c62f787a4d koda's OpenAL conversion:
unc0rr
parents:
diff changeset
    29
			OUTPUT_VARIABLE noout
20c62f787a4d koda's OpenAL conversion:
unc0rr
parents:
diff changeset
    30
			)
20c62f787a4d koda's OpenAL conversion:
unc0rr
parents:
diff changeset
    31