tools/CMakeLists.txt
author Alpar Juttner <alpar@cs.elte.hu>
Sat, 10 Oct 2009 08:19:26 +0200
changeset 741 8ae2627aba1a
parent 538 ba659d676331
permissions -rw-r--r--
Backport [53bea38f71cb] 'Update Doxygen configuration file'
alpar@511
     1
INCLUDE_DIRECTORIES(
ladanyi@538
     2
  ${PROJECT_SOURCE_DIR}
ladanyi@538
     3
  ${PROJECT_BINARY_DIR}
alpar@511
     4
)
alpar@511
     5
ladanyi@681
     6
LINK_DIRECTORIES(
ladanyi@681
     7
  ${PROJECT_BINARY_DIR}/lemon
ladanyi@681
     8
)
alpar@511
     9
alpar@511
    10
ADD_EXECUTABLE(lgf-gen lgf-gen.cc)
alpar@511
    11
TARGET_LINK_LIBRARIES(lgf-gen lemon)
alpar@511
    12
alpar@511
    13
ADD_EXECUTABLE(dimacs-to-lgf dimacs-to-lgf.cc)
alpar@511
    14
TARGET_LINK_LIBRARIES(dimacs-to-lgf lemon)
alpar@511
    15
alpar@511
    16
ADD_EXECUTABLE(dimacs-solver dimacs-solver.cc)
alpar@511
    17
TARGET_LINK_LIBRARIES(dimacs-solver lemon)
alpar@511
    18
alpar@511
    19
INSTALL(
alpar@511
    20
  TARGETS lgf-gen dimacs-to-lgf dimacs-solver
alpar@511
    21
  RUNTIME DESTINATION bin
alpar@511
    22
  COMPONENT bin
alpar@511
    23
)
alpar@511
    24
alpar@511
    25
IF(NOT WIN32)
alpar@511
    26
  INSTALL(
ladanyi@538
    27
    PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/lemon-0.x-to-1.x.sh
ladanyi@538
    28
    DESTINATION bin
ladanyi@681
    29
    COMPONENT bin
ladanyi@681
    30
  )
ladanyi@681
    31
ENDIF()