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

21 lines
609 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)
DECORATE_NEL_LIB("seven_zip")
SET(SEVEN_ZIP_LIB ${LIBNAME})
ADD_EXECUTABLE(7zDec ${SRC})
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR} ${NELMISC_INCLUDE_DIRS})
TARGET_LINK_LIBRARIES(7zDec ${PLATFORM_LINKFLAGS} ${LIBXML2_LIBRARIES} ${NELMISC_LIBRARY})
ADD_LIBRARY(${SEVEN_ZIP_LIB} STATIC ${LIB_SRC})
TARGET_LINK_LIBRARIES(${SEVEN_ZIP_LIB} ${PLATFORM_LINKFLAGS})
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS} -D_SZ_ONE_DIRECTORY)
INSTALL(TARGETS 7zDec RUNTIME DESTINATION bin COMPONENT client)