forked from Vector35/debugger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
38 lines (32 loc) · 990 Bytes
/
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.13 FATAL_ERROR)
project(debugger)
if((NOT BN_API_PATH) AND (NOT BN_INTERNAL_BUILD))
set(BN_API_PATH $ENV{BN_API_PATH})
if(NOT BN_API_PATH)
message(FATAL_ERROR "Provide path to Binary Ninja API source in BN_API_PATH")
endif()
endif()
if (NOT BN_INTERNAL_BUILD)
if(WIN32)
set(MSVC_VERSION msvc2022_64 CACHE STRING "Version of MSVC Qt is built with" )
endif()
set(QT_VERSION 6.7.2 CACHE STRING "Version of Qt to use")
if(NOT CMAKE_PREFIX_PATH)
if(APPLE)
set(CMAKE_PREFIX_PATH $ENV{HOME}/Qt/${QT_VERSION}/clang_64/lib/cmake)
elseif(WIN32)
set(CMAKE_PREFIX_PATH $ENV{HOMEDRIVE}$ENV{HOMEPATH}/Qt/${QT_VERSION}/${MSVC_VERSION}/lib/cmake)
else()
set(CMAKE_PREFIX_PATH $ENV{HOME}/Qt/${QT_VERSION}/gcc_64/lib/cmake)
endif()
endif()
message("CMAKE_PREFIX_PATH is: ${CMAKE_PREFIX_PATH}")
endif()
add_subdirectory(core)
add_subdirectory(api)
if(NOT HEADLESS)
add_subdirectory(ui)
endif()
if (NOT DEMO)
add_subdirectory(cli)
endif()