diff --git a/CMakeLists.txt b/CMakeLists.txt index f540e52..1247f9d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -53,15 +53,16 @@ endif () SET_SOURCE_FILES_PROPERTIES(ALL_HEADER_FILES PROPERTIES HEADER_FILE_ONLY TRUE) 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 - ARCHIVE DESTINATION "lib" CONFIGURATIONS Debug Release MinSizeRel RelWithDebInfo - LIBRARY DESTINATION "lib" CONFIGURATIONS Debug Release MinSizeRel RelWithDebInfo - RUNTIME DESTINATION "bin" CONFIGURATIONS Debug Release MinSizeRel RelWithDebInfo - ) +INSTALL(TARGETS tomcrypt_static + ARCHIVE DESTINATION "lib" + LIBRARY DESTINATION "lib" + 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)