lemon/CMakeLists.txt
author Akos Ladanyi <ladanyi@tmit.bme.hu>
Tue, 28 Apr 2009 18:45:29 +0100
changeset 634 32fb28fc9d42
parent 491 879c55700cd4
child 622 20dac2104519
permissions -rw-r--r--
Do not distribute lemon/config.h and fix its bad include by core.h (#280)
ladanyi@620
     1
INCLUDE_DIRECTORIES(
ladanyi@620
     2
  ${CMAKE_SOURCE_DIR}
ladanyi@620
     3
  ${PROJECT_BINARY_DIR}
ladanyi@620
     4
)
ladanyi@620
     5
ladanyi@620
     6
CONFIGURE_FILE(
ladanyi@620
     7
  ${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake
ladanyi@620
     8
  ${CMAKE_CURRENT_BINARY_DIR}/config.h
ladanyi@620
     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@491
    15
  random.cc
alpar@491
    16
  bits/windows.cc
alpar@491
    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@620
    29
ladanyi@620
    30
INSTALL(
ladanyi@620
    31
  FILES ${CMAKE_CURRENT_BINARY_DIR}/config.h
ladanyi@620
    32
  DESTINATION include/lemon
ladanyi@620
    33
  COMPONENT headers)