tools/CMakeLists.txt
author Akos Ladanyi <ladanyi@tmit.bme.hu>
Fri, 29 May 2009 17:46:48 +0100
changeset 682 257e91516e09
parent 538 ba659d676331
permissions -rw-r--r--
Set the version to 'hg-tip' if everything fails
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()