forked from REhints/HexRaysCodeXplorer
-
Notifications
You must be signed in to change notification settings - Fork 16
/
CMakeLists.txt
44 lines (35 loc) · 1.35 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
39
40
41
42
43
44
cmake_minimum_required(VERSION 3.1)
project(HexRaysCodeXplorer)
include("ida-cmake/cmake/IDA.cmake")
set(CMAKE_CXX_STANDARD 11)
set(sources "src/HexRaysCodeXplorer/Debug.cpp"
"src/HexRaysCodeXplorer/CtreeExtractor.cpp"
"src/HexRaysCodeXplorer/GCCObjectFormatParser.cpp"
"src/HexRaysCodeXplorer/GCCTypeInfo.cpp"
"src/HexRaysCodeXplorer/GCCVtableInfo.cpp"
"src/HexRaysCodeXplorer/IObjectFormatParser.cpp"
"src/HexRaysCodeXplorer/MSVCObjectFormatParser.cpp"
"src/HexRaysCodeXplorer/ObjectExplorer.cpp"
"src/HexRaysCodeXplorer/CodeXplorer.cpp"
"src/HexRaysCodeXplorer/CtreeGraphBuilder.cpp"
"src/HexRaysCodeXplorer/TypeReconstructor.cpp"
"src/HexRaysCodeXplorer/TypeExtractor.cpp"
"src/HexRaysCodeXplorer/Utility.cpp")
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "AppleClang")
# using AppleClang
set(CMAKE_C_FLAGS "-DUSE_DANGEROUS_FUNCTIONS=1 -DUSE_STANDARD_FILE_FUNCTIONS=1")
set(CMAKE_CXX_FLAGS "-DUSE_DANGEROUS_FUNCTIONS=1 -DUSE_STANDARD_FILE_FUNCTIONS=1")
elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
# using Clang
# TODO
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
# using GCC
# TODO
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Intel")
# using Intel C++
# TODO
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
# using Visual Studio C++
# TODO
endif()
add_ida_plugin(${CMAKE_PROJECT_NAME} ${sources})