comparison src/CMakeLists.txt @ 1:7a2637c3eb83

Add csv parser from libqxt
author Andre Heinecke <andre.heinecke@intevation.de>
date Mon, 23 Mar 2015 16:33:26 +0100
parents 147b08bc7d64
children 97d2c8869c39
comparison
equal deleted inserted replaced
0:147b08bc7d64 1:7a2637c3eb83
5 # See LICENSE.txt for details. 5 # See LICENSE.txt for details.
6 6
7 include_directories(${Qt5Widgets_INCLUDE_DIRS}) 7 include_directories(${Qt5Widgets_INCLUDE_DIRS})
8 8
9 include_directories(${CMAKE_CURRENT_SOURCE_DIR}) 9 include_directories(${CMAKE_CURRENT_SOURCE_DIR})
10 include_directories(libqxt)
10 11
11 add_definitions(${Qt5Widgets_DEFINITIONS}) 12 add_definitions(${Qt5Widgets_DEFINITIONS})
12 13
13 set(APPLICATION_SRC 14 set(APPLICATION_SRC
14 main.cpp 15 main.cpp
70 qt5_add_resources(APPLICATION_SRC ${CMAKE_CURRENT_BINARY_DIR}/l10n.qrc) 71 qt5_add_resources(APPLICATION_SRC ${CMAKE_CURRENT_BINARY_DIR}/l10n.qrc)
71 qt5_create_translation(TRANSLATION_SRC ${FILES_TO_TRANSLATE} 72 qt5_create_translation(TRANSLATION_SRC ${FILES_TO_TRANSLATE}
72 ${CMAKE_CURRENT_SOURCE_DIR}/l10n/main_de_DE.ts) 73 ${CMAKE_CURRENT_SOURCE_DIR}/l10n/main_de_DE.ts)
73 endif() 74 endif()
74 75
76 add_subdirectory(libqxt)
77
75 add_executable(${PROJECT_NAME} 78 add_executable(${PROJECT_NAME}
76 ${_add_executable_params} 79 ${_add_executable_params}
77 # ${IMG_SRC} 80 # ${IMG_SRC}
78 ${APPLICATION_SRC} 81 ${APPLICATION_SRC}
79 ${TRANSLATION_SRC} 82 ${TRANSLATION_SRC}
81 ) 84 )
82 85
83 86
84 target_link_libraries(${PROJECT_NAME} 87 target_link_libraries(${PROJECT_NAME}
85 Qt5::Widgets 88 Qt5::Widgets
86 ${EXTRA_STATIC_LIBS}) 89 ${EXTRA_STATIC_LIBS}
90 ${PROJECT_NAME}_libqxt
91 )
87 92
88 if (WIN32) 93 if (WIN32)
89 set_target_properties(${PROJECT_NAME} PROPERTIES LINK_FLAGS "-municode") 94 set_target_properties(${PROJECT_NAME} PROPERTIES LINK_FLAGS "-municode")
90 endif(WIN32) 95 endif(WIN32)
91 96
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)