blob: 12e0ae487ff2dcec226559807fdd25fc064e7046 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
project(alsoft-config)
include_directories("${alsoft-config_BINARY_DIR}")
# Need Qt 4.8.0 or newer for the iconset theme attribute to work
find_package(Qt4 4.8.0 COMPONENTS QtCore QtGui)
if(QT_QTCORE_FOUND AND QT_QTGUI_FOUND)
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})
add_executable(../../alsoft-config ${alsoft-config_SRCS} ${UIS} ${RSCS} ${TRS} ${MOCS})
target_link_libraries(../../alsoft-config ${QT_LIBRARIES})
install(TARGETS ../../alsoft-config
RUNTIME DESTINATION bin
LIBRARY DESTINATION "lib${LIB_SUFFIX}"
ARCHIVE DESTINATION "lib${LIB_SUFFIX}"
)
message(STATUS "Building configuration program")
endif()
|