# 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)
# Install the library
install (
TARGETS ${ROOJSPACKER_LIBRARY_NAME}
- 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
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} # On Windows, the DLL goes in the same place as the executables
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} # This is where shared libraries (*.so on Linux, *.dynlib on OS X)
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}) # Finally, this is where static libraries (*.a) go
# Install the C header
-install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${ROOJSPACKER_PKG_NAME}.h
- DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/)
+#install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${ROOJSPACKER_PKG_NAME}.h
+# DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/)
+
+INSTALL (FILES ${CMAKE_CURRENT_BINARY_DIR}/${ROOJSPACKER_PKG_NAME}.h
+ DESTINATION include)
+
# Install our VAPI
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${ROOJSPACKER_PKG_NAME}.vapi