Commit 61fa4734 authored by Chris Müller's avatar Chris Müller
Browse files

Fix some wrong references between pkgconfig file and CMakeLists.txt.

Setup a proper "make install" process.
parent c1a2a17f
set(LIB crystal)
set(TARGET_NAME crystal)
set(DESCRIPTION "Crystal Core Libs")
set(VERSION "0.1")
......@@ -14,10 +14,10 @@ set(HEADER
unittest.h
)
add_library(${LIB} SHARED ${SOURCES})
add_library(${TARGET_NAME} SHARED ${SOURCES})
configure_file(pkgconfig.pc.in ${CMAKE_BINARY_DIR}/pkgconfig.pc @ONLY)
install(FILES ${CMAKE_BINARY_DIR}/pkgconfig.pc DESTINATION lib/pkgconfig RENAME ${LIB}.pc)
install(FILES ${LIB} DESTINATION lib)
install(FILES ${HEADER} DESTINATION include/${LIB})
install(FILES ${CMAKE_BINARY_DIR}/pkgconfig.pc DESTINATION lib/pkgconfig RENAME ${TARGET_NAME}.pc)
install(FILES ${HEADER} DESTINATION include/${TARGET_NAME})
install(TARGETS ${TARGET_NAME} ARCHIVE DESTINATION lib LIBRARY DESTINATION lib)
......@@ -7,6 +7,6 @@ Name: @TARGET_NAME@
Description: @PROJECT_DESCRIPTION@
Version: @PROJECT_VERSION@
Requires: @DEPS_PKGCONFIG@
Libs: -L${libdir} -l@TARGT_NAME@
Libs: -L${libdir} -l@TARGET_NAME@
Cflags: -I${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