summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt10
1 files changed, 4 insertions, 6 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 689a8fb..b59a437 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -57,8 +57,10 @@ set_target_properties(${lib_name}_static PROPERTIES OUTPUT_NAME ${lib_name})
set(CMAKE_INSTALL_PREFIX /opt/MESA)
-install(TARGETS ${lib_name}_shared LIBRARY DESTINATION
- ${CMAKE_INSTALL_PREFIX}/lib)
+install(FILES inc/MESA_handle_logger.h DESTINATION
+ ${CMAKE_INSTALL_PREFIX}/include/MESA COMPONENT devel)
+install(TARGETS ${lib_name}_shared LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib COMPONENT LIBRARIES)
+install(FILES inc/MESA_handle_logger.h DESTINATION ${CMAKE_INSTALL_PREFIX}/include/MESA COMPONENT HEADER)
install(CODE "execute_process( \
COMMAND ${CMAKE_COMMAND} -E create_symlink \
@@ -67,10 +69,6 @@ install(CODE "execute_process( \
)"
)
-install(FILES inc/MESA_handle_logger.h DESTINATION
- ${CMAKE_INSTALL_PREFIX}/include/MESA COMPONENT devel)
-install(TARGETS ${lib_name}_shared LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib COMPONENT LIBRARIES)
-install(FILES inc/MESA_handle_logger.h DESTINATION ${CMAKE_INSTALL_PREFIX}/include/MESA COMPONENT HEADER)