Avoid a loop when updating the source position variables
[openal-soft.git] / utils / alsoft-config / CMakeLists.txt
bloba6707a3de3e19fa43fae2642ab45e81a3ddb57d6
1 project(alsoft-config)
3 include_directories("${alsoft-config_BINARY_DIR}")
5 # Need Qt 4.8.0 or newer for the iconset theme attribute to work
6 find_package(Qt4 4.8.0 COMPONENTS QtCore QtGui)
7 if(QT4_FOUND)
8     include(${QT_USE_FILE})
10     set(alsoft-config_SRCS  main.cpp
11                             mainwindow.cpp
12         )
14     set(alsoft-config_UIS  mainwindow.ui)
15     QT4_WRAP_UI(UIS ${alsoft-config_UIS})
17     set(alsoft-config_MOCS  mainwindow.h)
18     QT4_WRAP_CPP(MOCS ${alsoft-config_MOCS})
20     add_executable(alsoft-config ${alsoft-config_SRCS} ${UIS} ${RSCS} ${TRS} ${MOCS})
21     target_link_libraries(alsoft-config ${QT_LIBRARIES})
22     set_target_properties(alsoft-config PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${OpenAL_BINARY_DIR})
24     install(TARGETS alsoft-config
25             RUNTIME DESTINATION bin
26             LIBRARY DESTINATION "lib${LIB_SUFFIX}"
27             ARCHIVE DESTINATION "lib${LIB_SUFFIX}"
28     )
29 endif()