-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from Guillaumebeuzeboc/dev/cpack
Dev/cpack
- Loading branch information
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,3 +16,32 @@ include_directories(${EIGEN3_INCLUDE_DIR}) | |
add_executable(QGLViz src/main.cpp) | ||
qt5_use_modules(QGLViz Widgets OpenGL) | ||
target_link_libraries(QGLViz ${QT_LIBRARIES} ${OPENGL_LIBRARIES}) | ||
|
||
# Install | ||
install(TARGETS QGLViz | ||
DESTINATION bin) | ||
|
||
set(CMAKE_PROJECT_NAME "QGLViz") | ||
include(${CMAKE_CURRENT_SOURCE_DIR}/version.cmake) | ||
if(EXISTS "${CMAKE_ROOT}/Modules/CPack.cmake") | ||
include(InstallRequiredSystemLibraries) | ||
set(CPACK_SET_DESTDIR "on") | ||
set(CPACK_PACKAGING_INSTALL_PREFIX "/tmp") | ||
set(CPACK_GENERATOR "DEB") | ||
set(CPACK_PACKAGE_DESCRIPTION "QGLViz my own viz") | ||
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "It's a POC of what a visaualization tool could be") | ||
set(CPACK_PACKAGE_VENDOR "beuzecorp") | ||
set(CPACK_PACKAGE_CONTACT "[email protected]") | ||
set(CPACK_PACKAGE_VERSION_MAJOR "${MAJOR_VERSION}") | ||
set(CPACK_PACKAGE_VERSION_MINOR "${MINOR_VERSION}") | ||
set(CPACK_PACKAGE_VERSION_PATCH "${PATCH_VERSION}") | ||
set(CPACK_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}_${MAJOR_VERSION}.${MINOR_VERSION}.${CPACK_PACKAGE_VERSION_PATCH}") | ||
set(CPACK_SOURCE_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}_${MAJOR_VERSION}.${MINOR_VERSION}.${CPACK_PACKAGE_VERSION_PATCH}") | ||
|
||
set (CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON) # auto detect dependencies | ||
|
||
set(CPACK_DEBIAN_PACKAGE_PRIORITY "optional") | ||
set(CPACK_DEBIAN_PACKAGE_SECTION "beuz") | ||
set(CPACK_DEBIAN_ARCHITECTURE ${CMAKE_SYSTEM_PROCESSOR}) | ||
include(CPack) | ||
ENDIF(EXISTS "${CMAKE_ROOT}/Modules/CPack.cmake") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
set(MAJOR_VERSION "1") | ||
set(MINOR_VERSION "0") | ||
set(PATCH_VERSION "0") |