[Cmake-commits] [cmake-commits] king committed CMakeLists.txt NONE 1.1 CMakeTestExportPackageConfig.cmake.in NONE 1.1 CMakeTestExportPackageConfigVersion.cmake.in NONE 1.1 dummy.c NONE 1.1
cmake-commits at cmake.org
cmake-commits at cmake.org
Tue Sep 1 14:05:44 EDT 2009
Update of /cvsroot/CMake/CMake/Tests/FindPackageTest/Exporter
In directory public:/mounts/ram/cvs-serv28360/Tests/FindPackageTest/Exporter
Added Files:
CMakeLists.txt CMakeTestExportPackageConfig.cmake.in
CMakeTestExportPackageConfigVersion.cmake.in dummy.c
Log Message:
Test the user package registry
We teach the FindPackageTest to build a sample project that stores its
build tree in the user package registry using export(PACKAGE), and then
find it with find_package.
--- NEW FILE: CMakeTestExportPackageConfigVersion.cmake.in ---
# Test config file.
SET(PACKAGE_VERSION "1. at CMAKE_VERSION@")
IF("${PACKAGE_FIND_VERSION}" VERSION_EQUAL "${PACKAGE_VERSION}")
SET(PACKAGE_VERSION_COMPATIBLE 1)
SET(PACKAGE_VERSION_EXACT 1)
ENDIF()
--- NEW FILE: dummy.c ---
int main() { return 0; }
--- NEW FILE: CMakeLists.txt ---
cmake_minimum_required(VERSION 2.7.20090831)
project(CMakeTestExportPackage C)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/CMakeTestExportPackageConfig.cmake.in
${CMAKE_CURRENT_BINARY_DIR}/CMakeTestExportPackageConfig.cmake
@ONLY)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/CMakeTestExportPackageConfigVersion.cmake.in
${CMAKE_CURRENT_BINARY_DIR}/CMakeTestExportPackageConfigVersion.cmake
@ONLY)
export(PACKAGE CMakeTestExportPackage)
add_executable(dummy dummy.c)
--- NEW FILE: CMakeTestExportPackageConfig.cmake.in ---
# Test config file.
More information about the Cmake-commits
mailing list