khanat-opennel-code/code/ryzom/client/src/seven_zip/CMakeLists.txt

34 lines
957 B
Text
Raw Normal View History

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})
INCLUDE_DIRECTORIES(${NEL_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
TARGET_LINK_LIBRARIES(7zDec ${PLATFORM_LINKFLAGS} ${NELMISC_LIBRARY})
2010-05-06 00:08:41 +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})
SET_TARGET_PROPERTIES(ryzom_sevenzip PROPERTIES VERSION ${NL_VERSION})
IF(WIN32)
SET_TARGET_PROPERTIES(ryzom_sevenzip
PROJECT_LABEL "Library: Seven Zip"
DEBUG_POSTFIX "_d"
RELEASE_POSTFIX "_r"
2010-06-12 10:17:29 +00:00
LINK_FLAGS_DEBUG "/NODEFAULTLIB:msvcrt")
ENDIF(WIN32)
2010-05-06 00:08:41 +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)