Remove ../ includes in src/lib
This commit is contained in:
parent
0cd45ba1ef
commit
fedbcb0f3a
|
@ -50,7 +50,6 @@ if (COMMAND cmake_policy)
|
||||||
cmake_policy (SET CMP0005 NEW)
|
cmake_policy (SET CMP0005 NEW)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
||||||
# Add headers to source list
|
# Add headers to source list
|
||||||
if (${CMAKE_GENERATOR} STREQUAL "Unix Makefiles")
|
if (${CMAKE_GENERATOR} STREQUAL "Unix Makefiles")
|
||||||
set (SYNERGY_ADD_HEADERS FALSE)
|
set (SYNERGY_ADD_HEADERS FALSE)
|
||||||
|
@ -58,8 +57,8 @@ else()
|
||||||
set (SYNERGY_ADD_HEADERS TRUE)
|
set (SYNERGY_ADD_HEADERS TRUE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
||||||
set (libs)
|
set (libs)
|
||||||
|
include_directories (BEFORE SYSTEM ./ext/gtest/include)
|
||||||
|
|
||||||
if (UNIX)
|
if (UNIX)
|
||||||
if (NOT APPLE)
|
if (NOT APPLE)
|
||||||
|
@ -291,34 +290,31 @@ endif()
|
||||||
#
|
#
|
||||||
if (${CMAKE_SYSTEM_NAME} MATCHES "Windows")
|
if (${CMAKE_SYSTEM_NAME} MATCHES "Windows")
|
||||||
set (OPENSSL_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/ext/openssl/windows)
|
set (OPENSSL_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/ext/openssl/windows)
|
||||||
|
|
||||||
if (CMAKE_SIZEOF_VOID_P EQUAL 8)
|
if (CMAKE_SIZEOF_VOID_P EQUAL 8)
|
||||||
set (OPENSSL_ROOT "${OPENSSL_ROOT}/x64")
|
set (OPENSSL_ROOT "${OPENSSL_ROOT}/x64")
|
||||||
else()
|
else()
|
||||||
set (OPENSSL_ROOT "${OPENSSL_ROOT}/x86")
|
set (OPENSSL_ROOT "${OPENSSL_ROOT}/x86")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
include_directories (BEFORE SYSTEM ${OPENSSL_ROOT}/include)
|
||||||
set (OPENSSL_LIBS
|
set (OPENSSL_LIBS
|
||||||
${OPENSSL_ROOT}/lib/libeay32.lib
|
${OPENSSL_ROOT}/lib/libeay32.lib
|
||||||
${OPENSSL_ROOT}/lib/ssleay32.lib
|
${OPENSSL_ROOT}/lib/ssleay32.lib
|
||||||
)
|
)
|
||||||
|
|
||||||
elseif (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
elseif (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
||||||
set (OPENSSL_ROOT /usr/local/opt/openssl)
|
set (OPENSSL_ROOT /usr/local/opt/openssl)
|
||||||
|
|
||||||
|
include_directories (BEFORE SYSTEM ${OPENSSL_ROOT}/include)
|
||||||
set (OPENSSL_LIBS
|
set (OPENSSL_LIBS
|
||||||
${OPENSSL_ROOT}/lib/libssl.a
|
${OPENSSL_ROOT}/lib/libssl.a
|
||||||
${OPENSSL_ROOT}/lib/libcrypto.a
|
${OPENSSL_ROOT}/lib/libcrypto.a
|
||||||
)
|
)
|
||||||
|
|
||||||
elseif (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
elseif (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
||||||
set (OPENSSL_LIBS ssl crypto)
|
set (OPENSSL_LIBS ssl crypto)
|
||||||
else()
|
else()
|
||||||
message (FATAL_ERROR "Couldn't find OpenSSL")
|
message (FATAL_ERROR "Couldn't find OpenSSL")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set (OPENSSL_INCLUDE ${OPENSSL_ROOT}/include)
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Configure_file... but for directories, recursively.
|
# Configure_file... but for directories, recursively.
|
||||||
#
|
#
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
include_directories (./lib)
|
||||||
include_directories (${CMAKE_CURRENT_BINARY_DIR}/lib)
|
include_directories (${CMAKE_CURRENT_BINARY_DIR}/lib)
|
||||||
|
|
||||||
add_subdirectory(lib)
|
add_subdirectory(lib)
|
||||||
|
|
|
@ -19,6 +19,6 @@ add_subdirectory(synergys)
|
||||||
add_subdirectory(syntool)
|
add_subdirectory(syntool)
|
||||||
|
|
||||||
if (SYNERGY_BUILD_LEGACY_SERVICE)
|
if (SYNERGY_BUILD_LEGACY_SERVICE)
|
||||||
add_subdirectory(synergyd)
|
add_subdirectory(synergyd)
|
||||||
endif (SYNERGY_BUILD_LEGACY_SERVICE)
|
endif (SYNERGY_BUILD_LEGACY_SERVICE)
|
||||||
|
|
||||||
|
|
|
@ -45,10 +45,6 @@ if (SYNERGY_ADD_HEADERS)
|
||||||
list(APPEND sources ${headers})
|
list(APPEND sources ${headers})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include_directories(
|
|
||||||
../../lib/
|
|
||||||
)
|
|
||||||
|
|
||||||
add_executable(synergyc ${sources})
|
add_executable(synergyc ${sources})
|
||||||
target_link_libraries(synergyc
|
target_link_libraries(synergyc
|
||||||
arch base client common io mt net ipc platform server synlib ${libs} ${OPENSSL_LIBS})
|
arch base client common io mt net ipc platform server synlib ${libs} ${OPENSSL_LIBS})
|
||||||
|
|
|
@ -17,10 +17,6 @@
|
||||||
file(GLOB headers "*.h")
|
file(GLOB headers "*.h")
|
||||||
file(GLOB sources "*.cpp")
|
file(GLOB sources "*.cpp")
|
||||||
|
|
||||||
include_directories(
|
|
||||||
../../lib/
|
|
||||||
)
|
|
||||||
|
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
add_executable (synergyd WIN32 ${sources})
|
add_executable (synergyd WIN32 ${sources})
|
||||||
else()
|
else()
|
||||||
|
|
|
@ -45,10 +45,6 @@ if (SYNERGY_ADD_HEADERS)
|
||||||
list(APPEND sources ${headers})
|
list(APPEND sources ${headers})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include_directories(
|
|
||||||
../../lib/
|
|
||||||
)
|
|
||||||
|
|
||||||
add_executable(synergys ${sources})
|
add_executable(synergys ${sources})
|
||||||
target_link_libraries(synergys
|
target_link_libraries(synergys
|
||||||
arch base client common io mt net ipc platform server synlib ${libs} ${OPENSSL_LIBS})
|
arch base client common io mt net ipc platform server synlib ${libs} ${OPENSSL_LIBS})
|
||||||
|
|
|
@ -16,10 +16,6 @@
|
||||||
file(GLOB headers "*.h")
|
file(GLOB headers "*.h")
|
||||||
file(GLOB sources "*.cpp")
|
file(GLOB sources "*.cpp")
|
||||||
|
|
||||||
include_directories(
|
|
||||||
../../lib/
|
|
||||||
)
|
|
||||||
|
|
||||||
add_executable(syntool ${sources})
|
add_executable(syntool ${sources})
|
||||||
target_link_libraries(syntool
|
target_link_libraries(syntool
|
||||||
synlib arch base client common io ipc mt net platform server ${libs} ${OPENSSL_LIBS})
|
synlib arch base client common io ipc mt net platform server ${libs} ${OPENSSL_LIBS})
|
||||||
|
|
|
@ -10,7 +10,7 @@ file (GLOB LEGACY_GUI_SOURCE_FILES src/*.cpp src/*.h)
|
||||||
file (GLOB LEGACY_GUI_UI_FILES src/*.ui)
|
file (GLOB LEGACY_GUI_UI_FILES src/*.ui)
|
||||||
|
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
set (LEGACY_GUI_RC_FILES res/win/Synergy.rc)
|
set (LEGACY_GUI_RC_FILES res/win/Synergy.rc)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_executable (synergy WIN32
|
add_executable (synergy WIN32
|
||||||
|
@ -20,7 +20,7 @@ add_executable (synergy WIN32
|
||||||
res/Synergy.qrc
|
res/Synergy.qrc
|
||||||
)
|
)
|
||||||
|
|
||||||
include_directories (../lib/shared ./src)
|
include_directories (./src)
|
||||||
target_link_libraries (synergy shared)
|
target_link_libraries (synergy shared)
|
||||||
|
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
|
@ -37,7 +37,7 @@ target_compile_definitions (synergy PRIVATE -DVERSION_STAGE="${VERSION_STAGE}")
|
||||||
target_compile_definitions (synergy PRIVATE -DVERSION_REVISION="${SYNERGY_GIT_COMMIT}")
|
target_compile_definitions (synergy PRIVATE -DVERSION_REVISION="${SYNERGY_GIT_COMMIT}")
|
||||||
|
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
target_link_libraries (synergy ${DNSSD_LIB})
|
target_link_libraries (synergy ${DNSSD_LIB})
|
||||||
set_target_properties (synergy PROPERTIES LINK_FLAGS "/NODEFAULTLIB:LIBCMT")
|
set_target_properties (synergy PROPERTIES LINK_FLAGS "/NODEFAULTLIB:LIBCMT")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
#include "CancelActivationDialog.h"
|
#include "CancelActivationDialog.h"
|
||||||
#include "AppConfig.h"
|
#include "AppConfig.h"
|
||||||
#include "WebClient.h"
|
#include "WebClient.h"
|
||||||
#include "EditionType.h"
|
#include <shared/EditionType.h>
|
||||||
#include "ActivationNotifier.h"
|
#include "ActivationNotifier.h"
|
||||||
#include "MainWindow.h"
|
#include "MainWindow.h"
|
||||||
#include "QUtility.h"
|
#include "QUtility.h"
|
||||||
|
|
|
@ -17,7 +17,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "AppConfig.h"
|
#include "AppConfig.h"
|
||||||
#include "EditionType.h"
|
|
||||||
#include "QUtility.h"
|
#include "QUtility.h"
|
||||||
|
|
||||||
#include <QtCore>
|
#include <QtCore>
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
#include <QString>
|
#include <QString>
|
||||||
#include "ElevateMode.h"
|
#include "ElevateMode.h"
|
||||||
#include <EditionType.h>
|
#include <shared/EditionType.h>
|
||||||
|
|
||||||
// this should be incremented each time a new page is added. this is
|
// this should be incremented each time a new page is added. this is
|
||||||
// saved to settings when the user finishes running the wizard. if
|
// saved to settings when the user finishes running the wizard. if
|
||||||
|
|
|
@ -16,7 +16,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "LicenseManager.h"
|
#include "LicenseManager.h"
|
||||||
#include "EditionType.h"
|
|
||||||
#include "AppConfig.h"
|
#include "AppConfig.h"
|
||||||
#include <ctime>
|
#include <ctime>
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
|
|
|
@ -18,7 +18,8 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
#include <SerialKey.h>
|
#include <shared/EditionType.h>
|
||||||
|
#include <shared/SerialKey.h>
|
||||||
#include <ActivationNotifier.h>
|
#include <ActivationNotifier.h>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
#include "DataDownloader.h"
|
#include "DataDownloader.h"
|
||||||
#include "CommandProcess.h"
|
#include "CommandProcess.h"
|
||||||
#include "LicenseManager.h"
|
#include "LicenseManager.h"
|
||||||
#include "EditionType.h"
|
#include <shared/EditionType.h>
|
||||||
#include "QUtility.h"
|
#include "QUtility.h"
|
||||||
#include "ProcessorArch.h"
|
#include "ProcessorArch.h"
|
||||||
#include "SslCertificate.h"
|
#include "SslCertificate.h"
|
||||||
|
|
|
@ -19,7 +19,6 @@
|
||||||
|
|
||||||
#include "ProcessorArch.h"
|
#include "ProcessorArch.h"
|
||||||
#include "CommandProcess.h"
|
#include "CommandProcess.h"
|
||||||
#include "EditionType.h"
|
|
||||||
|
|
||||||
#if defined(Q_OS_LINUX)
|
#if defined(Q_OS_LINUX)
|
||||||
#include <QProcess>
|
#include <QProcess>
|
||||||
|
|
|
@ -23,7 +23,6 @@
|
||||||
#include "QSynergyApplication.h"
|
#include "QSynergyApplication.h"
|
||||||
#include "QUtility.h"
|
#include "QUtility.h"
|
||||||
#include "AppConfig.h"
|
#include "AppConfig.h"
|
||||||
#include "EditionType.h"
|
|
||||||
#include "SslCertificate.h"
|
#include "SslCertificate.h"
|
||||||
#include "MainWindow.h"
|
#include "MainWindow.h"
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
#include "WebClient.h"
|
#include "WebClient.h"
|
||||||
#include "ActivationNotifier.h"
|
#include "ActivationNotifier.h"
|
||||||
#include "LicenseManager.h"
|
#include "LicenseManager.h"
|
||||||
#include "EditionType.h"
|
|
||||||
#include "QSynergyApplication.h"
|
#include "QSynergyApplication.h"
|
||||||
#include "QUtility.h"
|
#include "QUtility.h"
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,6 @@
|
||||||
|
|
||||||
#include "WebClient.h"
|
#include "WebClient.h"
|
||||||
|
|
||||||
#include "EditionType.h"
|
|
||||||
#include "QUtility.h"
|
#include "QUtility.h"
|
||||||
|
|
||||||
#include <QProcess>
|
#include <QProcess>
|
||||||
|
|
|
@ -37,10 +37,6 @@ if (SYNERGY_ADD_HEADERS)
|
||||||
list(APPEND sources ${headers})
|
list(APPEND sources ${headers})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include_directories(
|
|
||||||
../
|
|
||||||
)
|
|
||||||
|
|
||||||
add_library(arch STATIC ${sources})
|
add_library(arch STATIC ${sources})
|
||||||
|
|
||||||
if (UNIX)
|
if (UNIX)
|
||||||
|
|
|
@ -21,10 +21,6 @@ if (SYNERGY_ADD_HEADERS)
|
||||||
list(APPEND sources ${headers})
|
list(APPEND sources ${headers})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include_directories(
|
|
||||||
../
|
|
||||||
)
|
|
||||||
|
|
||||||
add_library(base STATIC ${sources})
|
add_library(base STATIC ${sources})
|
||||||
|
|
||||||
if (UNIX)
|
if (UNIX)
|
||||||
|
|
|
@ -21,11 +21,6 @@ if (SYNERGY_ADD_HEADERS)
|
||||||
list(APPEND sources ${headers})
|
list(APPEND sources ${headers})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include_directories(
|
|
||||||
../
|
|
||||||
../../../ext
|
|
||||||
)
|
|
||||||
|
|
||||||
add_library(client STATIC ${sources})
|
add_library(client STATIC ${sources})
|
||||||
|
|
||||||
if (UNIX)
|
if (UNIX)
|
||||||
|
|
|
@ -21,8 +21,4 @@ if (SYNERGY_ADD_HEADERS)
|
||||||
list(APPEND sources ${headers})
|
list(APPEND sources ${headers})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include_directories(
|
|
||||||
../
|
|
||||||
)
|
|
||||||
|
|
||||||
add_library(common STATIC ${sources})
|
add_library(common STATIC ${sources})
|
||||||
|
|
|
@ -21,8 +21,4 @@ if (SYNERGY_ADD_HEADERS)
|
||||||
list(APPEND sources ${headers})
|
list(APPEND sources ${headers})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include_directories(
|
|
||||||
../
|
|
||||||
)
|
|
||||||
|
|
||||||
add_library(io STATIC ${sources})
|
add_library(io STATIC ${sources})
|
||||||
|
|
|
@ -21,10 +21,6 @@ if (SYNERGY_ADD_HEADERS)
|
||||||
list(APPEND sources ${headers})
|
list(APPEND sources ${headers})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include_directories(
|
|
||||||
../
|
|
||||||
)
|
|
||||||
|
|
||||||
add_library(ipc STATIC ${sources})
|
add_library(ipc STATIC ${sources})
|
||||||
|
|
||||||
if (UNIX)
|
if (UNIX)
|
||||||
|
|
|
@ -21,8 +21,4 @@ if (SYNERGY_ADD_HEADERS)
|
||||||
list(APPEND sources ${headers})
|
list(APPEND sources ${headers})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include_directories(
|
|
||||||
../
|
|
||||||
)
|
|
||||||
|
|
||||||
add_library(mt STATIC ${sources})
|
add_library(mt STATIC ${sources})
|
||||||
|
|
|
@ -21,11 +21,6 @@ if (SYNERGY_ADD_HEADERS)
|
||||||
list(APPEND sources ${headers})
|
list(APPEND sources ${headers})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include_directories(
|
|
||||||
../
|
|
||||||
${OPENSSL_INCLUDE}
|
|
||||||
)
|
|
||||||
|
|
||||||
add_library(net STATIC ${sources})
|
add_library(net STATIC ${sources})
|
||||||
|
|
||||||
if (UNIX)
|
if (UNIX)
|
||||||
|
|
|
@ -29,11 +29,6 @@ if (SYNERGY_ADD_HEADERS)
|
||||||
list(APPEND sources ${headers})
|
list(APPEND sources ${headers})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include_directories(
|
|
||||||
../
|
|
||||||
../../../ext/gtest/include
|
|
||||||
)
|
|
||||||
|
|
||||||
if (APPLE)
|
if (APPLE)
|
||||||
list(APPEND inc
|
list(APPEND inc
|
||||||
/System/Library/Frameworks
|
/System/Library/Frameworks
|
||||||
|
|
|
@ -21,12 +21,6 @@ if (SYNERGY_ADD_HEADERS)
|
||||||
list(APPEND sources ${headers})
|
list(APPEND sources ${headers})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include_directories(
|
|
||||||
../
|
|
||||||
../../../ext
|
|
||||||
../../../ext/gtest/include
|
|
||||||
)
|
|
||||||
|
|
||||||
add_library(server STATIC ${sources})
|
add_library(server STATIC ${sources})
|
||||||
|
|
||||||
target_link_libraries(server shared)
|
target_link_libraries(server shared)
|
||||||
|
|
|
@ -22,11 +22,5 @@ endif()
|
||||||
|
|
||||||
add_library(shared STATIC ${sources})
|
add_library(shared STATIC ${sources})
|
||||||
|
|
||||||
include_directories(
|
|
||||||
../
|
|
||||||
../../../ext
|
|
||||||
../../../ext/gtest/include
|
|
||||||
)
|
|
||||||
|
|
||||||
target_link_libraries(shared arch base)
|
target_link_libraries(shared arch base)
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
#include "EditionType.h"
|
#include "EditionType.h"
|
||||||
|
|
||||||
#ifdef TEST_ENV
|
#ifdef TEST_ENV
|
||||||
#include "gtest/gtest_prod.h"
|
#include <gtest/gtest_prod.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
class SerialKey {
|
class SerialKey {
|
||||||
|
|
|
@ -33,12 +33,6 @@ if (SYNERGY_ADD_HEADERS)
|
||||||
list(APPEND sources ${headers})
|
list(APPEND sources ${headers})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include_directories(
|
|
||||||
../
|
|
||||||
../../../ext
|
|
||||||
../../../ext/gtest/include
|
|
||||||
)
|
|
||||||
|
|
||||||
add_library(synlib STATIC ${sources})
|
add_library(synlib STATIC ${sources})
|
||||||
|
|
||||||
if (UNIX)
|
if (UNIX)
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
#include "common/stdset.h"
|
#include "common/stdset.h"
|
||||||
#include "common/stdvector.h"
|
#include "common/stdvector.h"
|
||||||
|
|
||||||
#include "gtest/gtest_prod.h"
|
#include <gtest/gtest_prod.h>
|
||||||
|
|
||||||
namespace synergy {
|
namespace synergy {
|
||||||
|
|
||||||
|
|
|
@ -20,10 +20,6 @@ if (SYNERGY_ADD_HEADERS)
|
||||||
list(APPEND sources ${headers})
|
list(APPEND sources ${headers})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include_directories(
|
|
||||||
../
|
|
||||||
)
|
|
||||||
|
|
||||||
add_library(synwinhk SHARED ${sources})
|
add_library(synwinhk SHARED ${sources})
|
||||||
|
|
||||||
if (NOT MSVC_VERSION VERSION_LESS 1900)
|
if (NOT MSVC_VERSION VERSION_LESS 1900)
|
||||||
|
|
Loading…
Reference in New Issue