qcross/qcrossedit/CMakeLists.txt

48 lines
1.3 KiB
CMake
Raw Normal View History

2010-06-16 12:53:56 +00:00
project(qcrossedit)
cmake_minimum_required(VERSION 2.8)
find_package(Qt4 COMPONENTS QtCore QtGui REQUIRED)
include_directories(${QT_INCLUDES} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_SOURCE_DIR})
include(${QT_USE_FILE})
set(INSTALL_SHARE_PREFIX ${CMAKE_INSTALL_PREFIX}/share)
set(INSTALL_SHARE_TARGET_PREFIX ${INSTALL_SHARE_PREFIX}/${PROJECT_NAME})
# set(FORMS )
set(SOURCES_MOC_H
cmainwindow.h
)
set(SOURCES_CPP main.cpp
cmainwindow.cpp
)
# set(TRANSLATIONS_TS ${PROJECT_NAME}_de.ts)
qt4_wrap_ui(FORMS_H ${FORMS})
qt4_wrap_cpp(SOURCES_MOC_CPP ${SOURCES_MOC_H})
# qt4_add_translation(TRANSLATIONS_QM ${TRANSLATIONS_TS})
2012-04-09 19:17:58 +00:00
add_executable(${PROJECT_NAME} WIN32
2010-06-16 12:53:56 +00:00
${SOURCES_CPP}
${SOURCES_MOC_CPP}
${SOURCES_H}
${FORMS_H}
# ${TRANSLATIONS_QM}
)
target_link_libraries(${PROJECT_NAME}
${qnono_BINARY_DIR}/libqnono.a
${QT_QTCORE_LIBRARY}
${QT_QTGUI_LIBRARY}
${QT_QTNETWORK_LIBRARY}
)
# file(GLOB RES_ICONS res/*.png res/qnut.svg res/qnut_small.svg)
install(TARGETS ${PROJECT_NAME} DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
# install(FILES ${TRANSLATIONS_QM} DESTINATION ${INSTALL_SHARE_TARGET_PREFIX}/lang)
# install(FILES ${RES_ICONS} DESTINATION ${INSTALL_SHARE_TARGET_PREFIX}/icons)
# install(FILES ${PROJECT_NAME}.desktop DESTINATION ${INSTALL_SHARE_PREFIX}/applications)