Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (22 sloc) 699 Bytes
project(LibFi CXX)
cmake_minimum_required(VERSION 2.6 FATAL_ERROR)
OPTION (BUILD_EXAMPLES "Build example programs." FALSE)
OPTION (BUILD_TESTING "Build unit tests." TRUE)
OPTION (BUILD_TOOLS "Build tools that help in using the library." FALSE)
set(INCLUDE_INSTALL_DIR
"${CMAKE_INSTALL_PREFIX}/include"
CACHE INTERNAL
"Directory where the library will be installed"
)
install(DIRECTORY ${PROJECT_SOURCE_DIR}/include/fi DESTINATION ${INCLUDE_INSTALL_DIR})
IF (BUILD_EXAMPLES)
add_subdirectory(examples)
ENDIF (BUILD_EXAMPLES)
IF (BUILD_TESTING)
include(CTest)
enable_testing()
add_subdirectory(tests)
ENDIF (BUILD_TESTING)
IF (BUILD_TOOLS)
add_subdirectory(tools)
ENDIF (BUILD_TOOLS)