Blame view

CMakeLists.txt 621 Bytes
850436fc   Peter M. Groen   Added CMakeLists
1
2
3
4
5
6
7
8
9
  cmake_minimum_required(VERSION 3.16)
  LIST( APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/submodules/cmake )
  include(projectheader)
  project_header(datamodels)
  
  find_package(Qt5 "5.15.0" COMPONENTS Core CONFIG REQUIRED )
  
  include_directories( SYSTEM
      ${Qt5Core_INCLUDE_DIRS}
70961ef0   Peter M. Groen   Added first model...
10
  )
850436fc   Peter M. Groen   Added CMakeLists
11
12
13
14
  
  include(compiler)
  
  set( SRC_LIST
70961ef0   Peter M. Groen   Added first model...
15
      ${CMAKE_SOURCE_DIR}/src/tablemodel/tablemodel.cpp
850436fc   Peter M. Groen   Added CMakeLists
16
17
18
19
  )
  
  include(qtmoc)
  create_mocs( SRC_LIST MOC_LIST
70961ef0   Peter M. Groen   Added first model...
20
      ${CMAKE_SOURCE_DIR}/src/tablemodel/tablemodel.h
850436fc   Peter M. Groen   Added CMakeLists
21
22
23
24
25
26
27
28
29
30
31
32
33
34
  )
  
  link_directories(
      ${CMAKE_BINARY_DIR}/lib
  )
  
  include(library)
  add_libraries(
      ${Qt5Core_LIBRARIES}
  )
  
  
  include(installation)
  install_component()