cmake/LEMONConfig.cmake.in
author Akos Ladanyi <ladanyi@tmit.bme.hu>
Fri, 29 May 2009 12:44:37 +0100
changeset 681 9c7639f3a741
permissions -rw-r--r--
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.
ladanyi@677
     1
SET(LEMON_INCLUDE_DIR "@CMAKE_INSTALL_PREFIX@/include" CACHE PATH "LEMON include directory")
ladanyi@677
     2
SET(LEMON_INCLUDE_DIRS "${LEMON_INCLUDE_DIR}")
ladanyi@677
     3
ladanyi@677
     4
IF(UNIX)
ladanyi@677
     5
  SET(LEMON_LIB_NAME "libemon.a")
ladanyi@677
     6
ELSEIF(WIN32)
ladanyi@677
     7
  SET(LEMON_LIB_NAME "lemon.lib")
ladanyi@677
     8
ENDIF(UNIX)
ladanyi@677
     9
ladanyi@677
    10
SET(LEMON_LIBRARY "@CMAKE_INSTALL_PREFIX@/lib/${LEMON_LIB_NAME}" CACHE FILEPATH "LEMON library")
ladanyi@677
    11
SET(LEMON_LIBRARIES "${LEMON_LIBRARY}")
ladanyi@677
    12
ladanyi@677
    13
MARK_AS_ADVANCED(LEMON_LIBRARY LEMON_INCLUDE_DIR)