# 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")
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)