~singpolyma/biboumi

b71547a32b9beefbe24465a5ba092d2f9b3b04e5 — Florent Le Coz 10 years ago d1c6d64
Fix the build system to correctly include config.h
1 files changed, 3 insertions(+), 1 deletions(-)

M CMakeLists.txt
M CMakeLists.txt => CMakeLists.txt +3 -1
@@ 21,6 21,8 @@ include(FindEXPAT)
find_package(EXPAT REQUIRED)
find_package(Libidn)

# To be able to include the config.h file generated by cmake
include_directories(${CMAKE_CURRENT_BINARY_DIR})
include_directories("src/")
include_directories(${EXPAT_INCLUDE_DIRS})
include_directories(${ICONV_INCLUDE_DIRS})


@@ 123,4 125,4 @@ target_link_libraries(test
  config
  logger)

configure_file(config.h.cmake src/config.h)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h)
\ No newline at end of file