Install lemon/config.h (#274)
authorAkos Ladanyi <ladanyi@tmit.bme.hu>
Tue, 28 Apr 2009 13:38:06 +0100
changeset 510d8ca76573eb3
parent 508 47b376a5a2a7
child 511 8a144437db7d
Install lemon/config.h (#274)
CMakeLists.txt
demo/CMakeLists.txt
lemon/CMakeLists.txt
lemon/Makefile.am
test/CMakeLists.txt
     1.1 --- a/CMakeLists.txt	Tue Mar 31 16:05:54 2009 +0100
     1.2 +++ b/CMakeLists.txt	Tue Apr 28 13:38:06 2009 +0100
     1.3 @@ -14,6 +14,8 @@
     1.4  INCLUDE(FindDoxygen)
     1.5  INCLUDE(FindGhostscript)
     1.6  
     1.7 +ADD_DEFINITIONS(-DHAVE_CONFIG_H)
     1.8 +
     1.9  INCLUDE(CheckTypeSize)
    1.10  CHECK_TYPE_SIZE("long long" LONG_LONG)
    1.11  
     2.1 --- a/demo/CMakeLists.txt	Tue Mar 31 16:05:54 2009 +0100
     2.2 +++ b/demo/CMakeLists.txt	Tue Apr 28 13:38:06 2009 +0100
     2.3 @@ -1,4 +1,7 @@
     2.4 -INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR})
     2.5 +INCLUDE_DIRECTORIES(
     2.6 +  ${CMAKE_SOURCE_DIR}
     2.7 +  ${PROJECT_BINARY_DIR}
     2.8 +)
     2.9  
    2.10  LINK_DIRECTORIES(${CMAKE_BINARY_DIR}/lemon)
    2.11  
     3.1 --- a/lemon/CMakeLists.txt	Tue Mar 31 16:05:54 2009 +0100
     3.2 +++ b/lemon/CMakeLists.txt	Tue Apr 28 13:38:06 2009 +0100
     3.3 @@ -1,4 +1,12 @@
     3.4 -INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR})
     3.5 +INCLUDE_DIRECTORIES(
     3.6 +  ${CMAKE_SOURCE_DIR}
     3.7 +  ${PROJECT_BINARY_DIR}
     3.8 +)
     3.9 +
    3.10 +CONFIGURE_FILE(
    3.11 +  ${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake
    3.12 +  ${CMAKE_CURRENT_BINARY_DIR}/config.h
    3.13 +)
    3.14  
    3.15  ADD_LIBRARY(lemon
    3.16    arg_parser.cc
    3.17 @@ -18,3 +26,8 @@
    3.18    DESTINATION include/lemon
    3.19    COMPONENT headers
    3.20    FILES_MATCHING PATTERN "*.h")
    3.21 +
    3.22 +INSTALL(
    3.23 +  FILES ${CMAKE_CURRENT_BINARY_DIR}/config.h
    3.24 +  DESTINATION include/lemon
    3.25 +  COMPONENT headers)
     4.1 --- a/lemon/Makefile.am	Tue Mar 31 16:05:54 2009 +0100
     4.2 +++ b/lemon/Makefile.am	Tue Apr 28 13:38:06 2009 +0100
     4.3 @@ -23,6 +23,7 @@
     4.4          lemon/bin_heap.h \
     4.5          lemon/color.h \
     4.6  	lemon/concept_check.h \
     4.7 +	lemon/config.h \
     4.8          lemon/counter.h \
     4.9  	lemon/core.h \
    4.10          lemon/dfs.h \
     5.1 --- a/test/CMakeLists.txt	Tue Mar 31 16:05:54 2009 +0100
     5.2 +++ b/test/CMakeLists.txt	Tue Apr 28 13:38:06 2009 +0100
     5.3 @@ -1,4 +1,7 @@
     5.4 -INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR})
     5.5 +INCLUDE_DIRECTORIES(
     5.6 +  ${CMAKE_SOURCE_DIR}
     5.7 +  ${PROJECT_BINARY_DIR}
     5.8 +)
     5.9  
    5.10  LINK_DIRECTORIES(${CMAKE_BINARY_DIR}/lemon)
    5.11