I have the following bit of CMake code. INSTALL(TARGETS ${MXADATAMODEL_LIB_NAME} LIBRARY DESTINATION bin ARCHIVE DESTINATION lib RUNTIME DESTINATION lib COMPONENT SDKLibrary )
Using Visual Studio and the NSIS installer, when I generate an installer on a Static library build the library is NOT installed. If I generate a Shared Library instead and then run the PACKAGE project from Visual Studio then the DLL is packaged correctly. If I have instead the following: INSTALL(TARGETS ${MXADATAMODEL_LIB_NAME} ARCHIVE DESTINATION lib COMPONENT SDKLibrary ) Then the Static Library build seems to work correctly. So, I am still coming up to speed with CPack and the installer and all that so what am I doing wrong? Oh, If I build the "INSTALL" project from Visual Studio on the original code at the top, then the library (whether static or dynamic) is installed correctly. Help. _________________________________________________________ Mike Jackson mike.jack...@bluequartz.net BlueQuartz Software www.bluequartz.net Principal Software Engineer Dayton, Ohio _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake