Blame view

src/CMakeLists.txt 592 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
  include(projectheader)
  project_header(crypter)
  
7ba6afb5   Steven de Ridder   Initial commit. d...
6
7
  
  include_directories( SYSTEM
e9413392   Peter M. Groen   New cmake setup
8
      ${CMAKE_SOURCE_DIR}/submodules/logger/src
7ba6afb5   Steven de Ridder   Initial commit. d...
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
  )
  
  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(
7ba6afb5   Steven de Ridder   Initial commit. d...
26
      crypto
e9413392   Peter M. Groen   New cmake setup
27
      logger
7ba6afb5   Steven de Ridder   Initial commit. d...
28
29
30
31
  )
  
  include(installation)
  install_component()
0288e1ab   Peter M. Groen   Fixed Loggin