CMakeLists.txt 526 B

123456789101112
  1. cmake_minimum_required(VERSION 2.7.20090831)
  2. project(CMakeTestExportPackage C)
  3. configure_file(${CMAKE_CURRENT_SOURCE_DIR}/CMakeTestExportPackageConfig.cmake.in
  4. ${CMAKE_CURRENT_BINARY_DIR}/CMakeTestExportPackageConfig.cmake
  5. @ONLY)
  6. configure_file(${CMAKE_CURRENT_SOURCE_DIR}/CMakeTestExportPackageConfigVersion.cmake.in
  7. ${CMAKE_CURRENT_BINARY_DIR}/CMakeTestExportPackageConfigVersion.cmake
  8. @ONLY)
  9. export(PACKAGE CMakeTestExportPackage)
  10. add_executable(dummy dummy.c)