tools/CMakeLists.txt
author Alpar Juttner <alpar@cs.elte.hu>
Wed, 25 Aug 2010 21:34:58 +0200
changeset 927 16d466589b54
parent 549 ba659d676331
permissions -rw-r--r--
Backport the CMAKE related changesets from the main branch

[e20fecd1945f] Add check target for CMake (#388)
[e74b5db4f2c6] Put the output of chg-len.py in the version string (#389)
[7d166b8b8018] Safer call of ./scripts/chg-len.py on Windows (#389)
[659ba4805a48] Make CMAKE config more consistent with configure.ac (#390)
[63e4468c680e] Add 'Maintainer' CMAKE build type (#388, #390)
[a725503acfe9] Allow CPACK configuration on all platforms
[10242c611190] Create and install lemon.pc (#393)
[48e29534cf03] The deafult target doesn't build lp_test and mip_test (#388)
[0fbbdd578c06] Full path for DoxygenLayout.xml in Doxyfile.in (#395)
[481496e6d71f] SOURCE_BROWSER Doxygen switch is configurable from CMAKE (#395)
[09282720100b] update-external-tags CMAKE target (#395)
alpar@527
     1
INCLUDE_DIRECTORIES(
ladanyi@549
     2
  ${PROJECT_SOURCE_DIR}
ladanyi@549
     3
  ${PROJECT_BINARY_DIR}
alpar@527
     4
)
alpar@527
     5
ladanyi@679
     6
LINK_DIRECTORIES(
ladanyi@679
     7
  ${PROJECT_BINARY_DIR}/lemon
ladanyi@679
     8
)
alpar@527
     9
alpar@527
    10
ADD_EXECUTABLE(lgf-gen lgf-gen.cc)
alpar@527
    11
TARGET_LINK_LIBRARIES(lgf-gen lemon)
alpar@527
    12
alpar@527
    13
ADD_EXECUTABLE(dimacs-to-lgf dimacs-to-lgf.cc)
alpar@527
    14
TARGET_LINK_LIBRARIES(dimacs-to-lgf lemon)
alpar@527
    15
alpar@527
    16
ADD_EXECUTABLE(dimacs-solver dimacs-solver.cc)
alpar@527
    17
TARGET_LINK_LIBRARIES(dimacs-solver lemon)
alpar@527
    18
alpar@527
    19
INSTALL(
alpar@527
    20
  TARGETS lgf-gen dimacs-to-lgf dimacs-solver
alpar@527
    21
  RUNTIME DESTINATION bin
alpar@527
    22
  COMPONENT bin
alpar@527
    23
)
alpar@527
    24
alpar@527
    25
IF(NOT WIN32)
alpar@527
    26
  INSTALL(
ladanyi@549
    27
    PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/lemon-0.x-to-1.x.sh
ladanyi@549
    28
    DESTINATION bin
ladanyi@679
    29
    COMPONENT bin
ladanyi@679
    30
  )
ladanyi@679
    31
ENDIF()