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