Commit 97ac33c5 authored by Nicolas Michon's avatar Nicolas Michon

Rename static library

parent 9f34b5ea
......@@ -153,22 +153,17 @@ if(ENABLE_SHARED)
endif()
if(ENABLE_STATIC)
add_library(turbojpeg-static STATIC ${JPEG_SOURCES} ${TURBOJPEG_SOURCES})
add_library(turbojpeg STATIC ${JPEG_SOURCES} ${TURBOJPEG_SOURCES})
if(NOT MSVC)
set_target_properties(turbojpeg-static PROPERTIES OUTPUT_NAME turbojpeg)
set_target_properties(turbojpeg PROPERTIES OUTPUT_NAME turbojpeg)
endif()
endif()
if(ENABLE_SHARED)
install(TARGETS turbojpeg
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
)
endif()
if(ENABLE_STATIC)
install(TARGETS turbojpeg-static ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
endif()
install(TARGETS turbojpeg
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
)
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/turbojpeg.h"
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment