aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/cmake/2_make.sh
blob: 1717d77431c2eb8edfda8ba2b2a25fc7153c2efc (plain)
1
2
3
4
#!/bin/bash

cd release
make
#3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
#cmake_minimum_required(VERSION 2.8)

PROJECT(libconfig_test_app)

add_subdirectory(src)

#add cmake script files
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake_work")

#check if libconfig is present (FindConfig.cmake and FindConfig++.cmake files)
FIND_PACKAGE(Config REQUIRED)
FIND_PACKAGE(Config++ REQUIRED)

#add undelete support
CONFIGURE_FILE(
    "${CMAKE_CURRENT_SOURCE_DIR}/cmake_work/cmake_uninstall.cmake.in"
    "${CMAKE_CURRENT_BINARY_DIR}/cmake_work/cmake_uninstall.cmake"
      IMMEDIATE @ONLY)
ADD_CUSTOM_TARGET(uninstall
    "${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_work/cmake_uninstall.cmake")