forked from yegord/snowman
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
45 lines (37 loc) · 1.2 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
45
set(MOC_HEADERS
DecompilerPlugin.h
NavigationHelper.h
)
set(SOURCES
DecompilerPlugin.cpp
IdaByteSource.cpp
IdaByteSource.h
IdaDemangler.cpp
IdaDemangler.h
IdaFrontend.cpp
IdaFrontend.h
IdaPlugin.cpp
IdaPlugin.h
NavigationHelper.cpp
${MOC_HEADERS}
)
include_directories(${IDA_INCLUDE_DIR})
add_definitions(${IDA_DEFINITIONS})
if(MSVC)
# IDA uses functions that MSVC considers unsafe.
add_definitions(${IDA_DEFINITIONS} -D_CRT_SECURE_NO_WARNINGS)
endif()
if(${CMAKE_CXX_COMPILER_ID} MATCHES "GNU")
# Kill warnings in intel.hpp
add_definitions(-Wno-parentheses)
endif()
if(${CMAKE_CXX_COMPILER_ID} MATCHES "Clang")
# Kill numerous warnings.
add_definitions(-Wno-ignored-attributes -Wno-format-security -Wno-logical-op-parentheses)
endif()
qt4_wrap_cpp(SOURCES ${MOC_HEADERS} OPTIONS -DQ_MOC_RUN)
add_library(ida-plugin SHARED ${SOURCES})
target_link_libraries(ida-plugin nc nc-gui ${Boost_LIBRARIES} ${QT_LIBRARIES} ${IDA_LIBRARIES})
set_target_properties(ida-plugin PROPERTIES OUTPUT_NAME "snowman" PREFIX "" SUFFIX "${IDA_PLUGIN_EXT}")
install(TARGETS ida-plugin RUNTIME DESTINATION bin LIBRARY DESTINATION lib)
# vim:set et sts=4 sw=4 nospell: