Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

  • e9fcf99
  • /
  • CMakeLists.txt
Raw File Download

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
  • directory
content badge
swh:1:cnt:ae7416397e58e2d0c70946fce1e938e05d0ff3a3
directory badge
swh:1:dir:e9fcf99317635520e080e24931097e3cf049dd3d

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • content
  • directory
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
CMakeLists.txt

cmake_minimum_required(VERSION 3.1)
project(RealSkel)

#################### Set CMake Configure Variables ################################
set(CMAKE_BUILD_TYPE RELEASE) # DEBUG
# set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fsanitize=address,undefined")
set(CMAKE_CXX_STANDARD 14)

if(MSVC) # Windows
  set(QT_INSTALL_PATH E:/Qt/Qt5.12/5.12.2/msvc2017_64) # !!! set "your own QT install path"
  set(Qt5Core_DIR ${QT_INSTALL_PATH}/lib/cmake/Qt5Core) # !!! set "your own path"
  set(Qt5Widgets_DIR ${QT_INSTALL_PATH}/lib/cmake/Qt5Widgets) # !!! set "your own path"
  set(Qt5Gui_DIR ${QT_INSTALL_PATH}/lib/cmake/Qt5Gui)  # !!! set "your own path"
  set(Qt5OpenGL_DIR ${QT_INSTALL_PATH}/lib/cmake/Qt5OpenGL) # !!! set "your own path"

  set(OpenCV_DIR E:/thirdparty/opencv-4.2.0/build/install) # !!! set "your own path"

  set(Boost_INCLUDE_DIR E:/thirdparty/boost_1_74_0) # !!! set "your own path"
  set(BOOST_LIBRARYDIR E:/thirdparty/boost_1_74_0/lib64-msvc-14.2) # !!! set "your own path"
else() # Unix
  set(QT_INSTALL_PATH /opt/Qt5.12.2/5.10.0/gcc_64) # !!! set "your own QT install path"
  # Change Qt Dir if there is multiple Qt versions in your system
  # https://unix.stackexchange.com/questions/414904/anaconda-qt-vs-system-qt
  file( GLOB_RECURSE sres ${QT_INSTALL_PATH}/*/Qt5Config.cmake )
  message("-- Qt resouce ${sres}")
  get_filename_component( Qt5_DIR ${sres} DIRECTORY )
  message("-- Qt5_DIR resouce ${Qt5_DIR}")
  set(QT_QMAKE_EXECUTABLE ${QT_INSTALL_PATH}/bin/qmake)

  cmake_policy(SET CMP0072 OLD) # OpenGL https://github.com/PointCloudLibrary/pcl/issues/3065
endif()

# Qt
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTORCC ON)



#################### Find-Package ##################################################
# Find the Qt Related libraries
find_package(OpenGL REQUIRED)
find_package(Qt5Widgets REQUIRED)
find_package(Qt5Gui REQUIRED)
find_package(Qt5Core REQUIRED)
find_package(Qt5OpenGL REQUIRED)

include_directories(${Qt5Widgets_INCLUDE_DIRS})
include_directories(${Qt5Gui_INCLUDE_DIRS})
include_directories(${Qt5Core_INCLUDE_DIRS})
include_directories(${Qt5OpenGL_INCLUDE_DIRS})


add_subdirectory(core) # my own library milk
add_subdirectory(viewer)
include_directories(./)


#################### Link & Compile ###############################################
file(GLOB SRC "viewer/*.h" "./viewer/*.cpp" ./viewer/sketchapp.qrc)
add_executable(main main.cpp ${SRC})
if(UNIX)
  target_link_libraries(
    main
    PUBLIC
      milk
      GL
      Qt5::Core Qt5::Gui Qt5::Widgets Qt5::OpenGL
      ${OpenCV_LIBS}
  )
endif()

if(MSVC)
  target_link_libraries(
    main
    PUBLIC
      milk
      Qt5::Core Qt5::Gui Qt5::Widgets Qt5::OpenGL
      ${OpenCV_LIBS}
      OpenGL32.lib
  )
endif()

back to top

Software Heritage — Copyright (C) 2015–2026, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API