openalbridge/CMakeLists.txt
changeset 2191 20c62f787a4d
child 2194 1597710c6118
equal deleted inserted replaced
2190:cfcad6142d48 2191:20c62f787a4d
       
     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}
       
     6 			ARGS ${arch_to_build} -o ${EXECUTABLE_OUTPUT_PATH}/loaders.o -c ${hedgewars_SOURCE_DIR}/openalbridge/loaders.c -I ${OPENAL_INCLUDE_DIR} -O2
       
     7 			OUTPUT_VARIABLE noout
       
     8 )
       
     9 exec_program(${CMAKE_C_COMPILER}
       
    10 			ARGS ${arch_to_build} -o ${EXECUTABLE_OUTPUT_PATH}/endianness.o -c ${hedgewars_SOURCE_DIR}/openalbridge/endianness.c -I ${OPENAL_INCLUDE_DIR} -O2 
       
    11 	OUTPUT_VARIABLE noout
       
    12 )
       
    13 
       
    14 exec_program(${CMAKE_C_COMPILER}
       
    15 			ARGS ${arch_to_build} -o ${EXECUTABLE_OUTPUT_PATH}/openalwrap.o -c ${hedgewars_SOURCE_DIR}/openalbridge/openalwrap.c -I ${OPENAL_INCLUDE_DIR} -O2 
       
    16 			OUTPUT_VARIABLE noout
       
    17 )
       
    18 
       
    19 exec_program(${CMAKE_C_COMPILER}
       
    20 			ARGS ${arch_to_build} -o ${EXECUTABLE_OUTPUT_PATH}/wrappers.o -c ${hedgewars_SOURCE_DIR}/openalbridge/wrappers.c -I ${OPENAL_INCLUDE_DIR} -O2 
       
    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