Location: LEMON/LEMON-official/tools/CMakeLists.txt - annotation
Load file history
Minor CMake improvements
* Use the empty ELSE(), ENDIF(), ENDMACRO(), etc. syntax since this improves
readability and requires less typing.
* Use FIND_PACKAGE() instead of INCLUDE().
* Use the value of CMAKE_COMMAND variable instead of cmake, since this works
even if cmake is not in the PATH.
r574:c458e02723b1 r596:ba659d676331 r596:ba659d676331 r574:c458e02723b1 r574:c458e02723b1 r726:9c7639f3a741 r726:9c7639f3a741 r726:9c7639f3a741 r574:c458e02723b1 r574:c458e02723b1 r574:c458e02723b1 r574:c458e02723b1 r574:c458e02723b1 r574:c458e02723b1 r574:c458e02723b1 r574:c458e02723b1 r574:c458e02723b1 r574:c458e02723b1 r574:c458e02723b1 r574:c458e02723b1 r574:c458e02723b1 r574:c458e02723b1 r574:c458e02723b1 r574:c458e02723b1 r574:c458e02723b1 r574:c458e02723b1 r596:ba659d676331 r596:ba659d676331 r726:9c7639f3a741 r726:9c7639f3a741 r726:9c7639f3a741 | INCLUDE_DIRECTORIES(
${PROJECT_SOURCE_DIR}
${PROJECT_BINARY_DIR}
)
LINK_DIRECTORIES(
${PROJECT_BINARY_DIR}/lemon
)
ADD_EXECUTABLE(lgf-gen lgf-gen.cc)
TARGET_LINK_LIBRARIES(lgf-gen lemon)
ADD_EXECUTABLE(dimacs-to-lgf dimacs-to-lgf.cc)
TARGET_LINK_LIBRARIES(dimacs-to-lgf lemon)
ADD_EXECUTABLE(dimacs-solver dimacs-solver.cc)
TARGET_LINK_LIBRARIES(dimacs-solver lemon)
INSTALL(
TARGETS lgf-gen dimacs-to-lgf dimacs-solver
RUNTIME DESTINATION bin
COMPONENT bin
)
IF(NOT WIN32)
INSTALL(
PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/lemon-0.x-to-1.x.sh
DESTINATION bin
COMPONENT bin
)
ENDIF()
|