PageRenderTime 27ms CodeModel.GetById 21ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/libconfig-1.4.8/contrib/cmake/CMakeLists.txt

#
CMake | 22 lines | 11 code | 7 blank | 4 comment | 0 complexity | 966e11bdcdba7bc3a53218d8e40f098f MD5 | raw file
Possible License(s): LGPL-2.1, LGPL-2.0
 1#cmake_minimum_required(VERSION 2.8)
 2
 3PROJECT(libconfig_test_app)
 4
 5add_subdirectory(src)
 6
 7#add cmake script files
 8set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake_work")
 9
10#check if libconfig is present (FindConfig.cmake and FindConfig++.cmake files)
11FIND_PACKAGE(Config REQUIRED)
12FIND_PACKAGE(Config++ REQUIRED)
13
14#add undelete support
15CONFIGURE_FILE(
16    "${CMAKE_CURRENT_SOURCE_DIR}/cmake_work/cmake_uninstall.cmake.in"
17    "${CMAKE_CURRENT_BINARY_DIR}/cmake_work/cmake_uninstall.cmake"
18      IMMEDIATE @ONLY)
19ADD_CUSTOM_TARGET(uninstall
20    "${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_work/cmake_uninstall.cmake")
21
22