mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-13 02:39:34 +00:00
26 lines
797 B
CMake
26 lines
797 B
CMake
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(${LIBXML2_INCLUDE_DIR} ${NEL_INCLUDE_DIR})
|
|
TARGET_LINK_LIBRARIES(7zDec ${PLATFORM_LINKFLAGS} ${LIBXML2_LIBRARIES} ${NELMISC_LIBRARY})
|
|
|
|
ADD_LIBRARY(seven_zip STATIC ${LIB_SRC})
|
|
TARGET_LINK_LIBRARIES(seven_zip ${PLATFORM_LINKFLAGS})
|
|
|
|
IF(WIN32)
|
|
SET_TARGET_PROPERTIES(seven_zip
|
|
PROJECT_LABEL "Library: Seven Zip"
|
|
DEBUG_POSTFIX "_d"
|
|
RELEASE_POSTFIX "_r"
|
|
LINK_FLAGS_DEBUG "/NODEFAULTLIB:libc;libcmt;libcmtd;msvcrt"
|
|
LINK_FLAGS_RELEASE "/NODEFAULTLIB:libc;libcmt;libcmtd;msvcrtd")
|
|
ENDIF(WIN32)
|
|
|
|
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS} -D_SZ_ONE_DIRECTORY)
|
|
|
|
INSTALL(TARGETS 7zDec RUNTIME DESTINATION bin COMPONENT client)
|