ENH: Link to cmzlib
This commit is contained in:
parent
ef75402148
commit
197ba0bdd6
|
@ -122,7 +122,7 @@ ENDIF (WIN32)
|
||||||
|
|
||||||
# create a library used by the command line and the GUI
|
# create a library used by the command line and the GUI
|
||||||
ADD_LIBRARY(CMakeLib ${SRCS})
|
ADD_LIBRARY(CMakeLib ${SRCS})
|
||||||
TARGET_LINK_LIBRARIES(CMakeLib cmsys cmexpat)
|
TARGET_LINK_LIBRARIES(CMakeLib cmsys cmexpat cmzlib)
|
||||||
|
|
||||||
# always link in the library
|
# always link in the library
|
||||||
# the library is found here
|
# the library is found here
|
||||||
|
|
|
@ -8,6 +8,7 @@ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DTEST_CXX_FLAGS")
|
||||||
LINK_DIRECTORIES(${Complex_BINARY_DIR}/../../Source)
|
LINK_DIRECTORIES(${Complex_BINARY_DIR}/../../Source)
|
||||||
LINK_DIRECTORIES(${Complex_BINARY_DIR}/../../Source/kwsys)
|
LINK_DIRECTORIES(${Complex_BINARY_DIR}/../../Source/kwsys)
|
||||||
LINK_DIRECTORIES(${Complex_BINARY_DIR}/../../Utilities/cmexpat)
|
LINK_DIRECTORIES(${Complex_BINARY_DIR}/../../Utilities/cmexpat)
|
||||||
|
LINK_DIRECTORIES(${Complex_BINARY_DIR}/../../Utilities/cmzlib)
|
||||||
# Use LINK_LIBRARIES instead of TARGET_LINK_LIBRARIES to
|
# Use LINK_LIBRARIES instead of TARGET_LINK_LIBRARIES to
|
||||||
SET(COMPLEX_LIBS CMakeTestLibrary;CMakeTestLibraryShared;CMakeTestCLibraryShared)
|
SET(COMPLEX_LIBS CMakeTestLibrary;CMakeTestLibraryShared;CMakeTestCLibraryShared)
|
||||||
LINK_LIBRARIES(${COMPLEX_LIBS})
|
LINK_LIBRARIES(${COMPLEX_LIBS})
|
||||||
|
@ -15,7 +16,7 @@ LINK_LIBRARIES(${COMPLEX_LIBS})
|
||||||
ADD_EXECUTABLE(A A.cxx)
|
ADD_EXECUTABLE(A A.cxx)
|
||||||
ADD_EXECUTABLE(complex complex)
|
ADD_EXECUTABLE(complex complex)
|
||||||
ADD_EXECUTABLE(complex.file complex.file.cxx)
|
ADD_EXECUTABLE(complex.file complex.file.cxx)
|
||||||
TARGET_LINK_LIBRARIES(complex CMakeLib cmsys cmexpat)
|
TARGET_LINK_LIBRARIES(complex CMakeLib cmsys cmexpat cmzlib)
|
||||||
IF (UNIX)
|
IF (UNIX)
|
||||||
TARGET_LINK_LIBRARIES(complex ${CMAKE_DL_LIBS})
|
TARGET_LINK_LIBRARIES(complex ${CMAKE_DL_LIBS})
|
||||||
ELSE(UNIX)
|
ELSE(UNIX)
|
||||||
|
|
|
@ -8,6 +8,7 @@ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DTEST_CXX_FLAGS")
|
||||||
LINK_DIRECTORIES(${Complex_BINARY_DIR}/../../Source)
|
LINK_DIRECTORIES(${Complex_BINARY_DIR}/../../Source)
|
||||||
LINK_DIRECTORIES(${Complex_BINARY_DIR}/../../Source/kwsys)
|
LINK_DIRECTORIES(${Complex_BINARY_DIR}/../../Source/kwsys)
|
||||||
LINK_DIRECTORIES(${Complex_BINARY_DIR}/../../Utilities/cmexpat)
|
LINK_DIRECTORIES(${Complex_BINARY_DIR}/../../Utilities/cmexpat)
|
||||||
|
LINK_DIRECTORIES(${Complex_BINARY_DIR}/../../Utilities/cmzlib)
|
||||||
# Use LINK_LIBRARIES instead of TARGET_LINK_LIBRARIES to
|
# Use LINK_LIBRARIES instead of TARGET_LINK_LIBRARIES to
|
||||||
SET(COMPLEX_LIBS CMakeTestLibrary;CMakeTestLibraryShared;CMakeTestCLibraryShared)
|
SET(COMPLEX_LIBS CMakeTestLibrary;CMakeTestLibraryShared;CMakeTestCLibraryShared)
|
||||||
LINK_LIBRARIES(${COMPLEX_LIBS})
|
LINK_LIBRARIES(${COMPLEX_LIBS})
|
||||||
|
@ -15,7 +16,7 @@ LINK_LIBRARIES(${COMPLEX_LIBS})
|
||||||
ADD_EXECUTABLE(A A.cxx)
|
ADD_EXECUTABLE(A A.cxx)
|
||||||
ADD_EXECUTABLE(complex complex)
|
ADD_EXECUTABLE(complex complex)
|
||||||
ADD_EXECUTABLE(complex.file complex.file.cxx)
|
ADD_EXECUTABLE(complex.file complex.file.cxx)
|
||||||
TARGET_LINK_LIBRARIES(complex CMakeLib cmsys cmexpat)
|
TARGET_LINK_LIBRARIES(complex CMakeLib cmsys cmexpat cmzlib)
|
||||||
IF (UNIX)
|
IF (UNIX)
|
||||||
TARGET_LINK_LIBRARIES(complex ${CMAKE_DL_LIBS})
|
TARGET_LINK_LIBRARIES(complex ${CMAKE_DL_LIBS})
|
||||||
ELSE(UNIX)
|
ELSE(UNIX)
|
||||||
|
|
|
@ -8,6 +8,7 @@ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DTEST_CXX_FLAGS")
|
||||||
LINK_DIRECTORIES(${Complex_BINARY_DIR}/../../Source)
|
LINK_DIRECTORIES(${Complex_BINARY_DIR}/../../Source)
|
||||||
LINK_DIRECTORIES(${Complex_BINARY_DIR}/../../Source/kwsys)
|
LINK_DIRECTORIES(${Complex_BINARY_DIR}/../../Source/kwsys)
|
||||||
LINK_DIRECTORIES(${Complex_BINARY_DIR}/../../Utilities/cmexpat)
|
LINK_DIRECTORIES(${Complex_BINARY_DIR}/../../Utilities/cmexpat)
|
||||||
|
LINK_DIRECTORIES(${Complex_BINARY_DIR}/../../Utilities/cmzlib)
|
||||||
# Use LINK_LIBRARIES instead of TARGET_LINK_LIBRARIES to
|
# Use LINK_LIBRARIES instead of TARGET_LINK_LIBRARIES to
|
||||||
SET(COMPLEX_LIBS CMakeTestLibrary;CMakeTestLibraryShared;CMakeTestCLibraryShared)
|
SET(COMPLEX_LIBS CMakeTestLibrary;CMakeTestLibraryShared;CMakeTestCLibraryShared)
|
||||||
LINK_LIBRARIES(${COMPLEX_LIBS})
|
LINK_LIBRARIES(${COMPLEX_LIBS})
|
||||||
|
@ -15,7 +16,7 @@ LINK_LIBRARIES(${COMPLEX_LIBS})
|
||||||
ADD_EXECUTABLE(A A.cxx)
|
ADD_EXECUTABLE(A A.cxx)
|
||||||
ADD_EXECUTABLE(complex complex)
|
ADD_EXECUTABLE(complex complex)
|
||||||
ADD_EXECUTABLE(complex.file complex.file.cxx)
|
ADD_EXECUTABLE(complex.file complex.file.cxx)
|
||||||
TARGET_LINK_LIBRARIES(complex CMakeLib cmsys cmexpat)
|
TARGET_LINK_LIBRARIES(complex CMakeLib cmsys cmexpat cmzlib)
|
||||||
IF (UNIX)
|
IF (UNIX)
|
||||||
TARGET_LINK_LIBRARIES(complex ${CMAKE_DL_LIBS})
|
TARGET_LINK_LIBRARIES(complex ${CMAKE_DL_LIBS})
|
||||||
ELSE(UNIX)
|
ELSE(UNIX)
|
||||||
|
|
Loading…
Reference in New Issue