Am Mittwoch 14 Mai 2008 08:12:32 schrieb hsanson: > I am following the instructions in this page to check for some header > files and fucntions > "http://www.cmake.org/Wiki/CMake_HowToDoPlatformChecks" but so far it is > not clear, at least to me, how the configure.h.cmake file mentioned is > created. If I have to create it manually it beats the utility of CMake > as I am checking for several header files and functions. > > My CMakeLists.txt file looks like > > CHECK_INCLUDE_FILES(header.h HAVE_HEADER_H) > CHECK_INCLUDE_FILES(header1.h HAVE_HEADER1_H) > CHECK_INCLUDE_FILES(header2.h HAVE_HEADER2_H) > CHECK_INCLUDE_FILES(header3.h HAVE_HEADER3_H) > CHECK_INCLUDE_FILES(header4.h HAVE_HEADER4_H) > CHECK_INCLUDE_FILES(header5.h HAVE_HEADER5_H) > ... repeat a lot > > CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake > ${CMAKE_CURRENT_SOURCE_DIR}/config.h) > > > > > This runs perfect until CONFIGURE_FILE where CMake complais that > config.h.cmake does not exist and is true because that file is not > created anywhere I can see. > > > Any ideas on how to generate the config.h.cmake and ultimately the > config.h file are appreciated. >
AFAIK the is no counterpart to autoheader for cmake. You have to write config.h.cmake yourself, i.e. <config.h.cmake> #cmakedefine HAVE_HEADER_H #cmakedefine HAVE_HEADER1_H ... </config.h.cmake> -- Maik _______________________________________________ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake