Blame view

src/CMakeLists.txt 678 Bytes
7ba6afb5   Steven de Ridder   Initial commit. d...
1
  cmake_minimum_required(VERSION 3.0)
e9413392   Peter M. Groen   New cmake setup
2
  LIST(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/submodules/cmake)
7ba6afb5   Steven de Ridder   Initial commit. d...
3
4
5
6
7
8
9
  include(projectheader)
  project_header(crypter)
  
  find_package( Qt5Core REQUIRED )
  
  include_directories( SYSTEM
      ${Qt5Core_INCLUDE_DIRS}
e9413392   Peter M. Groen   New cmake setup
10
      ${CMAKE_SOURCE_DIR}/submodules/logger/src
7ba6afb5   Steven de Ridder   Initial commit. d...
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
  )
  
  include(compiler)
  
  set(SRC_LIST
      ${CMAKE_CURRENT_SOURCE_DIR}/crypter.h
      ${CMAKE_CURRENT_SOURCE_DIR}/crypter.cpp
      ${CMAKE_CURRENT_SOURCE_DIR}/scopeguard.h
      ${CMAKE_CURRENT_SOURCE_DIR}/scopeguard.cpp
  )
  
  link_directories(
      ${CMAKE_BINARY_DIR}/lib
  )
  
  include(library)
  add_libraries(
      ${Qt5Core_LIBRARIES}
      crypto
e9413392   Peter M. Groen   New cmake setup
30
      logger
7ba6afb5   Steven de Ridder   Initial commit. d...
31
32
33
34
  )
  
  include(installation)
  install_component()
0288e1ab   Peter M. Groen   Fixed Loggin