forked from ahueck/opovlint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
54 lines (45 loc) · 1.51 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
46
47
48
49
50
51
52
53
54
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
PROJECT(OpOv)
include(${PROJECT_SOURCE_DIR}/cmake/ToolchainOptions.cmake)
set(CMAKE_VERBOSE_MAKEFILE on)
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)
include_directories(${PROJECT_SOURCE_DIR}/include)
set(LSOURCES
src/core/Application.cpp
src/core/module/AbstractModule.cpp
src/core/module/ModuleContext.cpp
src/core/module/ASTMatcherModule.cpp
src/core/AbstractModuleConsumer.cpp
src/core/AbstractFactory.cpp
src/core/configuration/JSONConfiguration.cpp
include/external/IncludeDirectives.cpp
include/external/ReplacementHandling.cpp
src/core/issue/IssueHandler.cpp
src/core/reporting/ConsoleReporter.cpp
src/core/reporting/CSVReporter.cpp
src/core/transformation/TransformationHandler.cpp
)
set(PSOURCES
src/AnalyzerFactory.cpp
src/ModuleConsumer.cpp
src/modules/ImplicitConditionMatcher.cpp
src/modules/FieldDeclCollector.cpp
src/modules/UnionMatcher.cpp
src/modules/ExplicitCast.cpp
src/modules/ConditionalAssgnMatcher.cpp
src/modules/ImplicitConversion.cpp
src/modules/ExplicitConstructor.cpp
src/modules/AllImplicitConversion.cpp
src/modules/GlobalScope.cpp
)
add_library(libopov ${LSOURCES})
target_link_libraries(libopov ${TOOLCHAIN_LINK_LIB})
add_library(stdimpl ${PSOURCES})
target_link_libraries(stdimpl libopov)
add_executable(find-type${EXE_SUFFIX} src/main.cpp src/OpOvApp.cpp)
target_link_libraries(find-type${EXE_SUFFIX} stdimpl)
if(MAKE_TEST)
message(STATUS "Requested generation of tests.")
add_subdirectory(test)
endif()