2013-06-24 04:27:35 -07:00
|
|
|
project(alsoft-config)
|
|
|
|
|
|
|
|
include_directories("${alsoft-config_BINARY_DIR}")
|
|
|
|
|
2013-06-24 04:47:36 -07:00
|
|
|
# Need Qt 4.8.0 or newer for the iconset theme attribute to work
|
2013-06-24 16:28:19 -07:00
|
|
|
find_package(Qt4 4.8.0 COMPONENTS QtCore QtGui)
|
2013-06-24 17:40:41 -07:00
|
|
|
if(QT4_FOUND)
|
2013-06-24 04:27:35 -07:00
|
|
|
include(${QT_USE_FILE})
|
|
|
|
|
|
|
|
set(alsoft-config_SRCS main.cpp
|
|
|
|
mainwindow.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
set(alsoft-config_UIS mainwindow.ui)
|
|
|
|
QT4_WRAP_UI(UIS ${alsoft-config_UIS})
|
|
|
|
|
|
|
|
set(alsoft-config_MOCS mainwindow.h)
|
|
|
|
QT4_WRAP_CPP(MOCS ${alsoft-config_MOCS})
|
|
|
|
|
2013-07-02 02:02:57 -07:00
|
|
|
add_executable(alsoft-config ${alsoft-config_SRCS} ${UIS} ${RSCS} ${TRS} ${MOCS})
|
|
|
|
target_link_libraries(alsoft-config ${QT_LIBRARIES})
|
2016-07-12 14:22:17 -07:00
|
|
|
set_property(TARGET alsoft-config APPEND PROPERTY COMPILE_FLAGS ${EXTRA_CFLAGS})
|
2013-07-02 02:02:57 -07:00
|
|
|
set_target_properties(alsoft-config PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${OpenAL_BINARY_DIR})
|
2013-06-24 04:27:35 -07:00
|
|
|
|
2013-07-02 02:02:57 -07:00
|
|
|
install(TARGETS alsoft-config
|
2013-06-24 04:27:35 -07:00
|
|
|
RUNTIME DESTINATION bin
|
|
|
|
LIBRARY DESTINATION "lib${LIB_SUFFIX}"
|
|
|
|
ARCHIVE DESTINATION "lib${LIB_SUFFIX}"
|
|
|
|
)
|
|
|
|
endif()
|