Use modern cmake patterns to build translations/XmlStrings.
This commit is contained in:
@@ -34,37 +34,23 @@ add_custom_target (update_translations DEPENDS ${glabels_qm_files} ${templates_q
|
||||
add_dependencies (glabels-qt update_translations)
|
||||
|
||||
|
||||
#=======================================
|
||||
# Compilation
|
||||
#=======================================
|
||||
add_compile_options (-std=c++11 -g)
|
||||
if (NOT WIN32)
|
||||
add_compile_options (-fPIC)
|
||||
endif ()
|
||||
|
||||
|
||||
#=======================================
|
||||
# XmlStrings utility
|
||||
#=======================================
|
||||
set (XmlStrings_sources
|
||||
add_executable (XmlStrings WIN32
|
||||
XmlStrings.cpp
|
||||
)
|
||||
|
||||
add_executable (XmlStrings WIN32
|
||||
${XmlStrings_sources}
|
||||
)
|
||||
#target_compile_features (Model
|
||||
# PUBLIC cxx_std_11
|
||||
#)
|
||||
set_property (TARGET XmlStrings PROPERTY CXX_STANDARD 11)
|
||||
|
||||
target_link_libraries (XmlStrings
|
||||
${Qt5Xml_LIBRARIES}
|
||||
${Qt5Svg_LIBRARIES}
|
||||
Qt5::Core
|
||||
Qt5::Xml
|
||||
)
|
||||
|
||||
include_directories (
|
||||
${Qt5Xml_INCLUDE_DIRS}
|
||||
${Qt5Svg_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
|
||||
#=======================================
|
||||
# Extract translatable strings from XML
|
||||
# template files.
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
* along with gLabels-qt. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <QApplication>
|
||||
#include <QCoreApplication>
|
||||
#include <QStringList>
|
||||
#include <QFile>
|
||||
#include <QDomDocument>
|
||||
|
||||
Reference in New Issue
Block a user