From aa32c5e5573dc386cf916c2c2b04881ec376339a Mon Sep 17 00:00:00 2001 From: "Geoff R. McLane" Date: Sat, 24 Jan 2015 13:14:12 +0100 Subject: [PATCH] change library name to 'tidy5' --- CMakeLists.txt | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b97d06a..3e18d9d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -106,18 +106,22 @@ if (MSVC) list(APPEND CFILES ${SRCDIR}/sprtf.c) list(APPEND LIBHFILES ${SRCDIR}/sprtf.h) endif () -if (BUILD_SHARED_LIB) - set(name tidy-shared) -else () - set(name tidy-static) -endif () +set(name lib-tidy) add_library ( ${name} ${LIB_TYPE} ${CFILES} ${HFILES} ${LIBHFILES} ) -list ( APPEND add_LIBS ${name} ) -if (NOT MSVC) +if (MSVC) + set_target_properties( ${name} PROPERTIES + DEBUG_OUTPUT_NAME tidy5d + RELEASE_OUTPUT_NAME tidy5 + ) +else () + set_target_properties( ${name} PROPERTIES + OUTPUT_NAME tidy5 + ) set_target_properties( ${name} PROPERTIES VERSION ${LIBTIDY_VERSION} SOVERSION ${TIDY_MAJOR_VERSION} ) endif () +list ( APPEND add_LIBS ${name} ) install(TARGETS ${name} RUNTIME DESTINATION bin ARCHIVE DESTINATION lib @@ -141,6 +145,7 @@ add_executable( ${name} ${BINDIR}/tab2space.c ) if (MSVC) set_target_properties( ${name} PROPERTIES DEBUG_POSTFIX d ) endif () -# no INSTALL of this 'lcoal' tool +# no INSTALL of this 'local' tool # eof +