fix targets for make file
[roojspacker] / bin / CMakeLists.txt
index 90e7fa1..6fcf8e6 100644 (file)
@@ -47,7 +47,10 @@ target_link_libraries(${PROJECT_NAME}
 
 # Install the executable.
 install (TARGETS ${PROJECT_NAME}
-    RUNTIME DESTINATION bin ${CMAKE_INSTALL_BINDIR})
+    RUNTIME DESTINATION bin  # On Windows, the DLL goes in the same place as the executables
+    LIBRARY DESTINATION lib  # This is where shared libraries (*.so on Linux, *.dynlib on OS X)
+    ARCHIVE DESTINATION lib) # Finally, this is where static libraries (*.a) go
+
 
 # Generate a .gitignore
 file(WRITE  ".gitignore" "# Automatically generated by CMake, do not modify.\n")
@@ -59,4 +62,4 @@ endforeach(file)
 foreach(file ${ROOJSPACKER_MAIN_SOURCES})
   string(REPLACE "${CMAKE_CURRENT_BINARY_DIR}/" "" file ${file})
   file(APPEND ".gitignore" "/${file}\n")
-endforeach(file)
\ No newline at end of file
+endforeach(file)