diff --git a/translations/CMakeLists.txt b/translations/CMakeLists.txt index 44820ab..3b61e15 100644 --- a/translations/CMakeLists.txt +++ b/translations/CMakeLists.txt @@ -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. diff --git a/translations/XmlStrings.cpp b/translations/XmlStrings.cpp index 964b561..b25b701 100644 --- a/translations/XmlStrings.cpp +++ b/translations/XmlStrings.cpp @@ -18,7 +18,7 @@ * along with gLabels-qt. If not, see . */ -#include +#include #include #include #include