Changeset - 75c3fe77fbe5
[Not reviewed]
Hasan Yavuz Ă–ZDERYA - 10 years ago 2015-06-21 05:25:26
hy@ozderya.net
add libraries to windows installer
1 file changed with 7 insertions and 0 deletions:
0 comments (0 inline, 0 general)
CMakeLists.txt
Show inline comments
 
@@ -104,24 +104,31 @@ message("SCM revision: ${VERSION_REVISIO
 
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/version.h.in" "${CMAKE_CURRENT_BINARY_DIR}/version.h")
 

	
 
# add make run target
 
add_custom_target(run
 
    COMMAND serialplot
 
    DEPENDS serialplot
 
    WORKING_DIRECTORY ${CMAKE_PROJECT_DIR}
 
)
 

	
 
# installing
 
install(TARGETS serialplot DESTINATION bin)
 

	
 
# for windows put libraries to install directory
 
if (WIN32)
 
  file(GLOB WINDOWS_INSTALL_LIBRARIES
 
    "${CMAKE_BINARY_DIR}/windows_install_libraries/*.*")
 
  install(FILES ${WINDOWS_INSTALL_LIBRARIES} DESTINATION bin)
 
endif (WIN32)
 

	
 
# install menu item and icon
 
find_program(XDG-DESKTOP-MENU xdg-desktop-menu)
 
find_program(XDG-ICON-RESOURCE xdg-icon-resource)
 

	
 
if (UNIX)
 
  # first copy files to share/serialplot/
 
  install(FILES
 
    ${CMAKE_SOURCE_DIR}/misc/serialplot.desktop
 
    ${CMAKE_SOURCE_DIR}/misc/serialplot.png
 
    DESTINATION share/serialplot)
 

	
 
  # install copyright file (in debian format)
0 comments (0 inline, 0 general)