# You don't need the .in file. CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
PROJECT(hello) set (hello_VERSION_MAJOR 1) set (hello_VERSION_MINOR 1) ENABLE_TESTING() ADD_LIBRARY(hello hello.cpp) # This works just the same. Unless I'm missing something. SET(hello_INCLUDE_DIRS ${CMAKE_INSTALL_PREFIX}/include/hello-${hello_VERSION_MAJOR}.${hello_VERSION_MINOR}) SET(hello_LIBRARIES ${CMAKE_INSTALL_PREFIX}/lib/hello-${hello_VERSION_MAJOR}.${hello_VERSION_MINOR}/libhello.a) INSTALL(TARGETS hello DESTINATION lib/hello-${hello_VERSION_MAJOR}.${hello_VERSION_MINOR}) INSTALL(FILES helloConfig.cmake DESTINATION lib/hello-${hello_VERSION_MAJOR}.${hello_VERSION_MINOR}) INSTALL(FILES hello.h DESTINATION include/hello-${hello_VERSION_MAJOR}.${hello_VERSION_MINOR})
-- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake