mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-12-16 05:48:46 +00:00
21 lines
609 B
Text
21 lines
609 B
Text
|
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)
|