-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
38 lines (32 loc) · 1.06 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
cmake_minimum_required(VERSION 3.18)
project(check_installations)
message("Checking OSRM required installations on your system")
message("Check for Boost")
find_package(Boost REQUIRED COMPONENTS system iostreams)
if(Boost_FOUND)
message(STATUS "Boost found: ${Boost_INCLUDE_DIRS}")
else()
message(FATAL_ERROR "Boost not found. Please install libboost-all-dev.")
endif()
message("Check for TBB")
find_package(TBB REQUIRED)
if(TBB_FOUND)
message(STATUS "TBB found: ${TBB_INCLUDE_DIRS}")
else()
message(FATAL_ERROR "TBB not found. Please install libtbb-dev.")
endif()
message("Check for Lua")
find_package(Lua 5.2 REQUIRED)
if(LUA_FOUND)
message(STATUS "Lua found: ${LUA_INCLUDE_DIR}")
else()
message(FATAL_ERROR "Lua not found. Please install lua5.2 and liblua5.2-dev.")
endif()
message("Check for Doxygen")
find_package(Doxygen)
if(DOXYGEN_FOUND)
message(STATUS "Doxygen found: ${DOXYGEN_EXECUTABLE}")
else()
message(FATAL_ERROR "Doxygen not found. Please install doxygen.")
endif()
message("Installation test completed. Please check for errors!")