2010-05-06 00:08:41 +00:00
|
|
|
FILE(GLOB SRC *.cpp *.h)
|
|
|
|
|
|
|
|
FILE(GLOB LIB_SRC *.cpp *.h)
|
|
|
|
|
|
|
|
LIST(REMOVE_ITEM LIB_SRC ${CMAKE_CURRENT_SOURCE_DIR}/7zMain.cpp)
|
|
|
|
|
|
|
|
ADD_EXECUTABLE(7zDec ${SRC})
|
|
|
|
|
2010-06-14 08:30:17 +00:00
|
|
|
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
TARGET_LINK_LIBRARIES(7zDec ${PLATFORM_LINKFLAGS})
|
2010-05-06 00:08:41 +00:00
|
|
|
|
2010-06-11 09:57:10 +00:00
|
|
|
IF(NOT WIN32)
|
|
|
|
ADD_LIBRARY(ryzom_sevenzip SHARED ${LIB_SRC})
|
|
|
|
ELSE(NOT WIN32)
|
|
|
|
ADD_LIBRARY(ryzom_sevenzip STATIC ${LIB_SRC})
|
|
|
|
ENDIF(NOT WIN32)
|
|
|
|
|
|
|
|
TARGET_LINK_LIBRARIES(ryzom_sevenzip ${PLATFORM_LINKFLAGS})
|
2010-06-14 08:30:17 +00:00
|
|
|
SET_TARGET_PROPERTIES(ryzom_sevenzip PROPERTIES
|
|
|
|
VERSION ${NL_VERSION}
|
|
|
|
SOVERSION ${NL_VERSION_MAJOR})
|
2010-05-10 17:17:19 +00:00
|
|
|
|
|
|
|
IF(WIN32)
|
2010-06-12 10:58:31 +00:00
|
|
|
SET_TARGET_PROPERTIES(ryzom_sevenzip
|
2010-05-10 17:17:19 +00:00
|
|
|
PROJECT_LABEL "Library: Seven Zip"
|
|
|
|
DEBUG_POSTFIX "_d"
|
|
|
|
RELEASE_POSTFIX "_r"
|
2010-06-12 10:17:29 +00:00
|
|
|
LINK_FLAGS_DEBUG "/NODEFAULTLIB:msvcrt")
|
2010-05-10 17:17:19 +00:00
|
|
|
ENDIF(WIN32)
|
2010-05-06 00:08:41 +00:00
|
|
|
|
2010-06-11 09:57:10 +00:00
|
|
|
ADD_DEFINITIONS(-D_SZ_ONE_DIRECTORY)
|
|
|
|
|
|
|
|
INSTALL(TARGETS ryzom_sevenzip LIBRARY DESTINATION lib ARCHIVE DESTINATION lib COMPONENT libraries)
|
2010-05-06 00:08:41 +00:00
|
|
|
|
|
|
|
INSTALL(TARGETS 7zDec RUNTIME DESTINATION bin COMPONENT client)
|