1*2e9d4914SAndroid Build Coastguard Worker#cmake_minimum_required(VERSION 2.8) 2*2e9d4914SAndroid Build Coastguard Worker 3*2e9d4914SAndroid Build Coastguard WorkerPROJECT(libconfig_test_app) 4*2e9d4914SAndroid Build Coastguard Worker 5*2e9d4914SAndroid Build Coastguard Workeradd_subdirectory(src) 6*2e9d4914SAndroid Build Coastguard Worker 7*2e9d4914SAndroid Build Coastguard Worker#add cmake script files 8*2e9d4914SAndroid Build Coastguard Workerset(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake_work") 9*2e9d4914SAndroid Build Coastguard Worker 10*2e9d4914SAndroid Build Coastguard Worker#check if libconfig is present (FindConfig.cmake and FindConfig++.cmake files) 11*2e9d4914SAndroid Build Coastguard WorkerFIND_PACKAGE(Config REQUIRED) 12*2e9d4914SAndroid Build Coastguard WorkerFIND_PACKAGE(Config++ REQUIRED) 13*2e9d4914SAndroid Build Coastguard Worker 14*2e9d4914SAndroid Build Coastguard Worker#add undelete support 15*2e9d4914SAndroid Build Coastguard WorkerCONFIGURE_FILE( 16*2e9d4914SAndroid Build Coastguard Worker "${CMAKE_CURRENT_SOURCE_DIR}/cmake_work/cmake_uninstall.cmake.in" 17*2e9d4914SAndroid Build Coastguard Worker "${CMAKE_CURRENT_BINARY_DIR}/cmake_work/cmake_uninstall.cmake" 18*2e9d4914SAndroid Build Coastguard Worker IMMEDIATE @ONLY) 19*2e9d4914SAndroid Build Coastguard WorkerADD_CUSTOM_TARGET(uninstall 20*2e9d4914SAndroid Build Coastguard Worker "${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_work/cmake_uninstall.cmake") 21*2e9d4914SAndroid Build Coastguard Worker 22*2e9d4914SAndroid Build Coastguard Worker 23