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-09-07 20:30:12 +00:00
|
|
|
NL_DEFAULT_PROPS(7zDec "Ryzom, Tools, Misc: Seven Zip Decoder")
|
|
|
|
NL_ADD_RUNTIME_FLAGS(7zDec)
|
2010-05-06 00:08:41 +00:00
|
|
|
|
2010-09-02 19:53:33 +00:00
|
|
|
NL_TARGET_LIB(ryzom_sevenzip ${LIB_SRC})
|
2010-06-11 09:57:10 +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")
|
|
|
|
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)
|
|
|
|
|
|
|
|
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)
|