lemon/CMakeLists.txt
author Akos Ladanyi <ladanyi@tmit.bme.hu>
Mon, 27 Apr 2009 20:02:37 +0100
changeset 395 8a144437db7d
parent 368 879c55700cd4
permissions -rw-r--r--
Prefix macro names with LEMON_ in lemon/config.h (#275)
ladanyi@394
     1
INCLUDE_DIRECTORIES(
ladanyi@394
     2
  ${CMAKE_SOURCE_DIR}
ladanyi@394
     3
  ${PROJECT_BINARY_DIR}
ladanyi@394
     4
)
ladanyi@394
     5
ladanyi@394
     6
CONFIGURE_FILE(
ladanyi@394
     7
  ${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake
ladanyi@394
     8
  ${CMAKE_CURRENT_BINARY_DIR}/config.h
ladanyi@394
     9
)
alpar@225
    10
alpar@225
    11
ADD_LIBRARY(lemon
alpar@225
    12
  arg_parser.cc
alpar@225
    13
  base.cc
alpar@225
    14
  color.cc
alpar@368
    15
  random.cc
alpar@368
    16
  bits/windows.cc
alpar@368
    17
)
alpar@225
    18
alpar@225
    19
INSTALL(
alpar@225
    20
  TARGETS lemon
alpar@225
    21
  ARCHIVE DESTINATION lib
alpar@225
    22
  COMPONENT library)
alpar@225
    23
alpar@225
    24
INSTALL(
alpar@225
    25
  DIRECTORY . bits concepts
alpar@225
    26
  DESTINATION include/lemon
alpar@225
    27
  COMPONENT headers
alpar@225
    28
  FILES_MATCHING PATTERN "*.h")
ladanyi@394
    29
ladanyi@394
    30
INSTALL(
ladanyi@394
    31
  FILES ${CMAKE_CURRENT_BINARY_DIR}/config.h
ladanyi@394
    32
  DESTINATION include/lemon
ladanyi@394
    33
  COMPONENT headers)