Commit 0e00795b authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

out-if "install" in libcerf

parent a1849239
......@@ -42,11 +42,12 @@ endif()
include(CTest)
set(destination ${CMAKE_INSTALL_PREFIX})
configure_file("libcerf.pc.in" "libcerf.pc" @ONLY)
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libcerf.pc"
DESTINATION "${destination}/lib/pkgconfig/")
if(LIB_INSTALL)
set(destination ${CMAKE_INSTALL_PREFIX})
configure_file("libcerf.pc.in" "libcerf.pc" @ONLY)
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libcerf.pc"
DESTINATION "${destination}/lib/pkgconfig/")
endif()
add_subdirectory(lib)
add_subdirectory(run)
......
......@@ -32,7 +32,7 @@ if(NOT MSVC)
target_link_libraries(${lib} m)
endif()
if (${LIB_INSTALL})
if (LIB_INSTALL)
install(
TARGETS ${lib} LIBRARY
DESTINATION ${destination}/lib
......
Supports Markdown
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