Blame view

src/CMakeLists.txt 808 Bytes
1a51a0a3   Peter M. Groen   Fixed CMakeLists
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
  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}
  )
  
  include(compiler)
  
  set( SRC_LIST
      ${CMAKE_CURRENT_SOURCE_DIR}/tablemodel/tablemodel.cpp
1dce31e3   Peter M. Groen   Setting up tablem...
16
      ${CMAKE_CURRENT_SOURCE_DIR}/tablemodel/modeldataitem.cpp
25f07764   Peter M. Groen   Implementing the ...
17
      ${CMAKE_CURRENT_SOURCE_DIR}/memorymodel/memorymodel.cpp
1a51a0a3   Peter M. Groen   Fixed CMakeLists
18
19
20
21
22
  )
  
  include(qtmoc)
  create_mocs( SRC_LIST MOC_LIST
      ${CMAKE_CURRENT_SOURCE_DIR}/tablemodel/tablemodel.h
25f07764   Peter M. Groen   Implementing the ...
23
      ${CMAKE_CURRENT_SOURCE_DIR}/memorymodel/memorymodel.h
1a51a0a3   Peter M. Groen   Fixed CMakeLists
24
25
26
27
28
29
30
31
32
33
34
35
36
37
  )
  
  link_directories(
      ${CMAKE_BINARY_DIR}/lib
  )
  
  include(library)
  add_libraries(
      ${Qt5Core_LIBRARIES}
  )
  
  
  include(installation)
  install_component()