Added a proper install
This commit is contained in:
parent
c3287eb602
commit
b7124d008b
@ -53,15 +53,16 @@ endif ()
|
|||||||
SET_SOURCE_FILES_PROPERTIES(ALL_HEADER_FILES PROPERTIES HEADER_FILE_ONLY TRUE)
|
SET_SOURCE_FILES_PROPERTIES(ALL_HEADER_FILES PROPERTIES HEADER_FILE_ONLY TRUE)
|
||||||
LIST(APPEND ALL_SOURCE_FILES ${ALL_HEADER_FILES})
|
LIST(APPEND ALL_SOURCE_FILES ${ALL_HEADER_FILES})
|
||||||
|
|
||||||
ADD_LIBRARY(libtomcrypt STATIC ${ALL_SOURCE_FILES})
|
ADD_LIBRARY(tomcrypt_static STATIC ${ALL_SOURCE_FILES})
|
||||||
|
set_target_properties(tomcrypt_static PROPERTIES OUTPUT_NAME "tomcrypt")
|
||||||
|
|
||||||
INSTALL(TARGETS libtomcrypt
|
INSTALL(TARGETS tomcrypt_static
|
||||||
ARCHIVE DESTINATION "lib" CONFIGURATIONS Debug Release MinSizeRel RelWithDebInfo
|
ARCHIVE DESTINATION "lib"
|
||||||
LIBRARY DESTINATION "lib" CONFIGURATIONS Debug Release MinSizeRel RelWithDebInfo
|
LIBRARY DESTINATION "lib"
|
||||||
RUNTIME DESTINATION "bin" CONFIGURATIONS Debug Release MinSizeRel RelWithDebInfo
|
RUNTIME DESTINATION "bin"
|
||||||
)
|
)
|
||||||
|
|
||||||
INSTALL(FILES ${LIBTOMCRYPT_PUBLIC_HEADER_FILES} DESTINATION "includes/libtomcrypt")
|
INSTALL(FILES ${ALL_HEADER_FILES} DESTINATION "includes/libtomcrypt")
|
||||||
|
|
||||||
SET(MSVC_LIKE_COMPILER OFF)
|
SET(MSVC_LIKE_COMPILER OFF)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user