mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-25 05:38:46 -05:00
Reducing the number of files dependent on svnversion.h without
compromising qmake builds. Now it is required to directly include svnversion.h to get the SVNVERSION macro defined. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@3955 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
7ab8cf2fe8
commit
c48be0494f
@ -8,14 +8,6 @@ set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/CMake/Modules)
|
||||
|
||||
include (${PROJECT_SOURCE_DIR}/CMake/VersionCompute.cmake)
|
||||
|
||||
# creates svnversion.h using cmake script
|
||||
add_custom_target (revisiontag
|
||||
COMMAND ${CMAKE_COMMAND} -D SOURCE_DIR=${CMAKE_CURRENT_SOURCE_DIR} -D OUTPUT_DIR=${PROJECT_BINARY_DIR} -P ${CMAKE_CURRENT_SOURCE_DIR}/CMake/getsvn.cmake
|
||||
COMMENT "Generating Subversion revision information"
|
||||
VERBATIM
|
||||
)
|
||||
include_directories ("${PROJECT_BINARY_DIR}")
|
||||
|
||||
|
||||
#
|
||||
# Options & features
|
||||
@ -645,10 +637,17 @@ add_custom_target (uninstall
|
||||
"${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake")
|
||||
|
||||
|
||||
# creates svnversion.h using cmake script
|
||||
add_custom_target (revisiontag
|
||||
COMMAND ${CMAKE_COMMAND} -D SOURCE_DIR=${CMAKE_CURRENT_SOURCE_DIR} -D OUTPUT_DIR=${PROJECT_BINARY_DIR} -P ${CMAKE_CURRENT_SOURCE_DIR}/CMake/getsvn.cmake
|
||||
COMMENT "Generating Subversion revision information"
|
||||
VERBATIM
|
||||
)
|
||||
# explicitly say that the executable depends on custom target, this is
|
||||
# done indirectly so that the revisiontag target gets built exactly
|
||||
# once per build
|
||||
add_dependencies(wsjt revisiontag)
|
||||
add_dependencies(wsjt_qt revisiontag)
|
||||
add_dependencies(jt9 revisiontag)
|
||||
add_dependencies(wsjtx revisiontag)
|
||||
|
||||
@ -660,6 +659,7 @@ configure_file (
|
||||
"${PROJECT_SOURCE_DIR}/wsjtx_config.h.in"
|
||||
"${PROJECT_BINARY_DIR}/wsjtx_config.h"
|
||||
)
|
||||
include_directories ("${PROJECT_BINARY_DIR}")
|
||||
|
||||
|
||||
if (NOT WIN32 AND NOT APPLE)
|
||||
|
@ -8,6 +8,8 @@
|
||||
#include <QDir>
|
||||
#include <QDebug>
|
||||
|
||||
#include "svnversion.h"
|
||||
|
||||
#include "GetUserId.hpp"
|
||||
#include "TraceFile.hpp"
|
||||
#include "TestConfiguration.hpp"
|
||||
|
@ -12,6 +12,8 @@
|
||||
#include <QDebug>
|
||||
#include <QSortFilterProxyModel>
|
||||
|
||||
#include "svnversion.h"
|
||||
|
||||
#include "Bands.hpp"
|
||||
#include "FrequencyList.hpp"
|
||||
#include "Configuration.hpp"
|
||||
|
2
main.cpp
2
main.cpp
@ -19,6 +19,8 @@
|
||||
#include <QDir>
|
||||
#include <QStandardPaths>
|
||||
|
||||
#include "svnversion.h"
|
||||
|
||||
#include "SettingsGroup.hpp"
|
||||
#include "TraceFile.hpp"
|
||||
#include "mainwindow.h"
|
||||
|
@ -12,6 +12,8 @@
|
||||
#include <QtConcurrent/QtConcurrentRun>
|
||||
#endif
|
||||
|
||||
#include "svnversion.h"
|
||||
|
||||
#include "soundout.h"
|
||||
#include "plotter.h"
|
||||
#include "about.h"
|
||||
|
2
svnversion.h
Normal file
2
svnversion.h
Normal file
@ -0,0 +1,2 @@
|
||||
/* empty file for qmake compatibility with CMake which generates one
|
||||
of these in the build tree that gets picked up in preference */
|
Loading…
Reference in New Issue
Block a user