lemon/CMakeLists.txt
changeset 678 01d301395d03
parent 622 20dac2104519
child 681 9c7639f3a741
equal deleted inserted replaced
13:48ec2f53aade 14:66eeb9538be0
    42   SET(LEMON_SOURCES ${LEMON_SOURCES} cbc.cc)
    42   SET(LEMON_SOURCES ${LEMON_SOURCES} cbc.cc)
    43   INCLUDE_DIRECTORIES(${COIN_INCLUDE_DIRS})
    43   INCLUDE_DIRECTORIES(${COIN_INCLUDE_DIRS})
    44 ENDIF(LEMON_HAVE_CBC)
    44 ENDIF(LEMON_HAVE_CBC)
    45 
    45 
    46 ADD_LIBRARY(lemon ${LEMON_SOURCES})
    46 ADD_LIBRARY(lemon ${LEMON_SOURCES})
       
    47 IF(UNIX)
       
    48   SET_TARGET_PROPERTIES(lemon PROPERTIES OUTPUT_NAME emon)
       
    49 ENDIF(UNIX)
    47 
    50 
    48 INSTALL(
    51 INSTALL(
    49   TARGETS lemon
    52   TARGETS lemon
    50   ARCHIVE DESTINATION lib
    53   ARCHIVE DESTINATION lib
    51   COMPONENT library)
    54   COMPONENT library
       
    55 )
    52 
    56 
    53 INSTALL(
    57 INSTALL(
    54   DIRECTORY . bits concepts
    58   DIRECTORY . bits concepts
    55   DESTINATION include/lemon
    59   DESTINATION include/lemon
    56   COMPONENT headers
    60   COMPONENT headers
    57   FILES_MATCHING PATTERN "*.h")
    61   FILES_MATCHING PATTERN "*.h"
       
    62 )
    58 
    63 
    59 INSTALL(
    64 INSTALL(
    60   FILES ${CMAKE_CURRENT_BINARY_DIR}/config.h
    65   FILES ${CMAKE_CURRENT_BINARY_DIR}/config.h
    61   DESTINATION include/lemon
    66   DESTINATION include/lemon
    62   COMPONENT headers)
    67   COMPONENT headers
       
    68 )