2012-09-26 10:44:03 +00:00
|
|
|
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
|
2010-05-06 00:08:41 +00:00
|
|
|
|
|
|
|
FILE(GLOB LIB_SRC *.cpp *.h)
|
|
|
|
|
|
|
|
LIST(REMOVE_ITEM LIB_SRC ${CMAKE_CURRENT_SOURCE_DIR}/7zMain.cpp)
|
|
|
|
|
2010-09-02 19:53:33 +00:00
|
|
|
NL_TARGET_LIB(ryzom_sevenzip ${LIB_SRC})
|
2010-09-29 21:52:28 +00:00
|
|
|
# TARGET_LINK_LIBRARIES(ryzom_sevenzip ${PLATFORM_LINKFLAGS})
|
2010-09-02 19:53:33 +00:00
|
|
|
NL_DEFAULT_PROPS(ryzom_sevenzip "Ryzom, Library: Seven Zip")
|
2010-09-20 19:43:14 +00:00
|
|
|
NL_ADD_RUNTIME_FLAGS(ryzom_sevenzip)
|
2010-09-02 19:53:33 +00:00
|
|
|
NL_ADD_LIB_SUFFIX(ryzom_sevenzip)
|
2010-05-06 00:08:41 +00:00
|
|
|
|
2010-06-11 09:57:10 +00:00
|
|
|
ADD_DEFINITIONS(-D_SZ_ONE_DIRECTORY)
|
|
|
|
|
2011-09-11 12:44:37 +00:00
|
|
|
IF((WITH_INSTALL_LIBRARIES AND WITH_STATIC) OR NOT WITH_STATIC)
|
2012-09-22 20:57:38 +00:00
|
|
|
INSTALL(TARGETS ryzom_sevenzip LIBRARY DESTINATION ${RYZOM_LIB_PREFIX} ARCHIVE DESTINATION ${RYZOM_LIB_PREFIX} COMPONENT libraries)
|
2011-09-11 12:44:37 +00:00
|
|
|
ENDIF((WITH_INSTALL_LIBRARIES AND WITH_STATIC) OR NOT WITH_STATIC)
|
2012-09-26 10:44:03 +00:00
|
|
|
|
|
|
|
IF(WITH_RYZOM_TOOLS)
|
|
|
|
ADD_EXECUTABLE(7zDec ${CMAKE_CURRENT_SOURCE_DIR}/7zMain.cpp)
|
|
|
|
|
|
|
|
TARGET_LINK_LIBRARIES(7zDec ryzom_sevenzip)
|
|
|
|
NL_DEFAULT_PROPS(7zDec "Ryzom, Tools, Misc: Seven Zip Decoder")
|
|
|
|
NL_ADD_RUNTIME_FLAGS(7zDec)
|
|
|
|
|
2012-09-27 20:17:47 +00:00
|
|
|
INSTALL(TARGETS 7zDec RUNTIME DESTINATION ${RYZOM_BIN_PREFIX} COMPONENT tools)
|
2012-09-26 10:44:03 +00:00
|
|
|
ENDIF(WITH_RYZOM_TOOLS)
|