Commit b844038f authored by Shervin Nourbakhsh's avatar Shervin Nourbakhsh
Browse files

ldconfig not able to find the library without this path change. The .so now in...

ldconfig not able to find the library without this path change. The .so now in the lib/ directory without subdir
parent e79ac56d
......@@ -10,6 +10,8 @@
Update to the most recent version of JAVA
``` sudo /sbin/alternatives --config java_sdk_openjdk ```
### Ubuntu
``` sudo apt install maven```
## Instructions
Download the version:
```
......
......@@ -14,7 +14,7 @@ include(FetchContent)
set(LIBNAME ${PROJECT_NAME})
set(NAMESPACE Cameo)
set(INSTALL_INCLUDEDIR ${CMAKE_INSTALL_INCLUDEDIR}/cameo/api)
set(ConfigPackageLocation ${CMAKE_INSTALL_LIBDIR}/cmake)
set(ConfigPackageLocation ${CMAKE_INSTALL_DATADIR}/cmake/${PROJECT_NAME})
set(component_runtime CAMEO_API_CPP_RUNTIME)
set(component_development CAMEO_API_CPP_DEVELOPMENT)
#--------------- Options
......@@ -146,10 +146,10 @@ install(TARGETS ${LIBNAME}
EXPORT cameoTargets
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} # windows
COMPONENT ${component_runtime}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/cameo/ # dynamic
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/ # dynamic
COMPONENT ${component_runtime}
NAMELINK_COMPONENT ${component_development} #from CMake 3.12
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}/cameo/ # static
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}/ # static
COMPONENT ${component_development}
PUBLIC_HEADER DESTINATION ${INSTALL_INCLUDEDIR}
COMPONENT ${component_development}
......@@ -200,6 +200,7 @@ install(
FILES
${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}-config.cmake
${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}-config-version.cmake
${CMAKE_CURRENT_SOURCE_DIR}/FindZeroMQ.cmake
DESTINATION ${ConfigPackageLocation}
COMPONENT ${component_development}
)
......@@ -207,11 +208,6 @@ install(
# Put config file in per-project dir (name MUST match), can also
# just go into 'cmake'.
install(
FILES ${CMAKE_CURRENT_SOURCE_DIR}/FindZeroMQ.cmake
DESTINATION ${ConfigPackageLocation}
COMPONENT ${component_development}
)
if(UNIX)
add_custom_command(
......
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