openalbridge/CMakeLists.txt
author unc0rr
Wed, 24 Jun 2009 15:59:32 +0000
changeset 2191 20c62f787a4d
child 2194 1597710c6118
permissions -rw-r--r--
koda's OpenAL conversion: - Freezes program for fadein/fadeout time - Has a problem with quickplay
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}
20c62f787a4d koda's OpenAL conversion:
unc0rr
parents:
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
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}
20c62f787a4d koda's OpenAL conversion:
unc0rr
parents:
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 
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}
20c62f787a4d koda's OpenAL conversion:
unc0rr
parents:
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 
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}
20c62f787a4d koda's OpenAL conversion:
unc0rr
parents:
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 
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