This repository was archived by the owner on Mar 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- set Qt includes and compile definitions only to relevant CMake targ…
…ets by explicitely calling the new QTX_SET_INCLUDES_AND_DEFINITIONS CMake macro (enables not to recompile the whole Tulip codebase when switching between Qt4 and Qt5) - Warning: that change will break build of external CMake projects that uses the FindQtX module, the new QTX_SET_INCLUDES_AND_DEFINITIONS macro must now be explicitely called in relevant CMakeLists.txt files git-svn-id: https://svn.code.sf.net/p/auber/code/tulip@12616 f5d4c5f9-c943-4916-8a57-bd8605bf961c
- Loading branch information
Showing
16 changed files
with
57 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
QTX_SET_INCLUDES_AND_DEFINITIONS() | ||
ADD_SUBDIRECTORY(GraphPerspective) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,25 @@ | ||
file(GLOB SRCS "*.c" "*.cpp") | ||
FILE(GLOB SRCS "*.c" "*.cpp") | ||
|
||
# Must be added to enable export macro | ||
ADD_DEFINITIONS(-DQUAZIP_BUILD) | ||
|
||
INCLUDE_DIRECTORIES(${ZLIB_INCLUDE_DIR}) | ||
|
||
QTX_SET_INCLUDES_AND_DEFINITIONS() | ||
|
||
QTX_WRAP_CPP(MOC_SRCS quazipfile.h quaziodevice.h quagzipfile.h) | ||
set(SRCS ${SRCS} ${MOC_SRCS}) | ||
SET(SRCS ${SRCS} ${MOC_SRCS}) | ||
|
||
add_library(${QuazipLibrary} SHARED ${SRCS}) | ||
set_target_properties(${QuazipLibrary} PROPERTIES VERSION 1.0.0 SOVERSION 1) | ||
ADD_LIBRARY(${QuazipLibrary} SHARED ${SRCS}) | ||
SET_TARGET_PROPERTIES(${QuazipLibrary} PROPERTIES VERSION 1.0.0 SOVERSION 1) | ||
# Link against ZLIB_LIBRARIES if needed (on Windows this variable is empty) | ||
target_link_libraries(${QuazipLibrary} ${QT_LIBRARIES} ${ZLIB_LIBRARIES}) | ||
TARGET_LINK_LIBRARIES(${QuazipLibrary} ${QT_LIBRARIES} ${ZLIB_LIBRARIES}) | ||
|
||
INSTALL(TARGETS ${QuazipLibrary} | ||
RUNTIME DESTINATION ${TulipBinInstallDir} COMPONENT quazip | ||
LIBRARY DESTINATION ${TulipLibInstallDir} COMPONENT quazip | ||
ARCHIVE DESTINATION ${TulipLibInstallDir} COMPONENT quazip) | ||
|
||
IF(TULIP_ACTIVATE_PYTHON_WHEELS_TARGETS) | ||
COPY_TARGET_LIBRARY_POST_BUILD(${QuazipLibrary} ${TULIPGUI_PYTHON_NATIVE_FOLDER} wheels) | ||
COPY_TARGET_LIBRARY_POST_BUILD(${QuazipLibrary} ${TULIPGUI_PYTHON_NATIVE_FOLDER} wheels) | ||
ENDIF(TULIP_ACTIVATE_PYTHON_WHEELS_TARGETS) |