Browse Source

* install header

master
Alex 'AdUser' Z 8 years ago
parent
commit
f09afc9e11
  1. 1
      CMakeLists.txt
  2. 7
      src/CMakeLists.txt

1
CMakeLists.txt

@ -33,6 +33,7 @@ message(STATUS "- CFLAGS : ${CMAKE_C_FLAGS}")
message(STATUS "Paths:") message(STATUS "Paths:")
message(STATUS "- prefix : ${CMAKE_INSTALL_PREFIX}") message(STATUS "- prefix : ${CMAKE_INSTALL_PREFIX}")
message(STATUS "- binary : ${CMAKE_INSTALL_FULL_BINDIR}") message(STATUS "- binary : ${CMAKE_INSTALL_FULL_BINDIR}")
message(STATUS "- header : ${CMAKE_INSTALL_FULL_INCLUDEDIR}")
message(STATUS "- library : ${CMAKE_INSTALL_FULL_LIBDIR}") message(STATUS "- library : ${CMAKE_INSTALL_FULL_LIBDIR}")
message(STATUS "Build type : ${CMAKE_BUILD_TYPE}") message(STATUS "Build type : ${CMAKE_BUILD_TYPE}")
message(STATUS "Options:") message(STATUS "Options:")

7
src/CMakeLists.txt

@ -1,7 +1,10 @@
set(LIB_SOURCES "database.c" "bitmap.c" "samplers/${SAMPLER}.c") set(LIB_SOURCES "database.c" "bitmap.c" "samplers/${SAMPLER}.c")
add_library("simdb" SHARED ${LIB_SOURCES}) add_library("simdb" SHARED ${LIB_SOURCES})
set_property(TARGET "simdb" PROPERTY SOVERSION ${SOVERSION}) set_target_properties("simdb" PROPERTIES
SOVERSION ${SOVERSION}
PUBLIC_HEADER "simdb.h"
)
if (${SAMPLER} STREQUAL "magick") if (${SAMPLER} STREQUAL "magick")
find_package(ImageMagick COMPONENTS MagickCore MagickWand) find_package(ImageMagick COMPONENTS MagickCore MagickWand)
@ -9,7 +12,7 @@ if (${SAMPLER} STREQUAL "magick")
target_link_libraries("simdb" ${ImageMagick_MagickWand_LIBRARY}) target_link_libraries("simdb" ${ImageMagick_MagickWand_LIBRARY})
endif () endif ()
install(TARGETS "simdb" LIBRARY DESTINATION "lib") install(TARGETS "simdb" LIBRARY DESTINATION "lib" PUBLIC_HEADER DESTINATION "include")
if (WITH_TOOLS) if (WITH_TOOLS)
add_executable("simdb-1to2" "simdb-1to2.c") add_executable("simdb-1to2" "simdb-1to2.c")

Loading…
Cancel
Save