Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- include(CheckFunctionExists)
- include(CheckIncludeFile)
- # Generate config.h
- configure_file(
- ${CMAKE_SOURCE_DIR}/config.h.in
- ${CMAKE_BINARY_DIR}/config.h
- )
- # Check for headers
- check_include_file(unistd.h HAVE_UNISTD_H)
- check_include_file(sys/time.h HAVE_SYS_TIME_H)
- # Check for functions
- check_function_exists(mlock HAVE_MLOCK)
- # Set configuration data
- set(PACKAGE_VERSION "${PROJECT_VERSION}")
- set(CONFIGURE_DATADIR "${CMAKE_INSTALL_FULL_DATADIR}")
- set(CONFIGURE_LIBDIR "${CMAKE_INSTALL_FULL_LIBDIR}")
- # Add more configuration checks and data as needed
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement