Skip to content

Instantly share code, notes, and snippets.

@fourbytes
Created November 28, 2020 06:30
Show Gist options
  • Save fourbytes/d6d3e13385a0bad4e784bca8547745af to your computer and use it in GitHub Desktop.
Save fourbytes/d6d3e13385a0bad4e784bca8547745af to your computer and use it in GitHub Desktop.
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 6132335b3..2445578b1 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -367,10 +367,11 @@ else()
#PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} COMPONENT development
#PRIVATE_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} COMPONENT development
RESOURCE DESTINATION ${CMAKE_INSTALL_DATADIR} COMPONENT development
+
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT development
)
if(COIN_BUILD_SHARED_LIBS)
- install(TARGETS ${PROJECT_NAME} EXPORT ${PROJECT_NAME} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT development NAMELINK_ONLY)
if(MSVC)
install(FILES $<TARGET_PDB_FILE:${PROJECT_NAME}> DESTINATION ${CMAKE_INSTALL_BINDIR} CONFIGURATIONS Debug RelWithDebInfo COMPONENT debug)
endif()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment