summaryrefslogtreecommitdiff
path: root/tools/policy_table_validator/CMakeLists.txt
blob: 6b9f26f01ad016bf8f42956a3c08bbbd85172f0f (plain)
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
#set( CMAKE_VERBOSE_MAKEFILE on )

include_directories(
  ${CMAKE_SOURCE_DIR}/src/components/rpc_base/include/
  ${CMAKE_SOURCE_DIR}/src/components/utils/include/
  ${COMPONENTS_DIR}/smart_objects/include/
  ${JSONCPP_INCLUDE_DIRECTORY}
  ${BOOST_INCLUDE_DIR}
)

message(STATUS "Using ${EXTENDED_POLICY} policy mode")
if (${EXTENDED_POLICY} STREQUAL "EXTERNAL_PROPRIETARY")
  include_directories(${CMAKE_SOURCE_DIR}/src/components/policy/policy_external/include/)
  include_directories(${CMAKE_BINARY_DIR}/src/components/policy/policy_external/)
else()
  include_directories(${CMAKE_SOURCE_DIR}/src/components/policy/policy_regular/include/)
  include_directories(${CMAKE_BINARY_DIR}/src/components/policy/policy_regular/)
endif()

link_directories (
  ${CMAKE_BINARY_DIR}/src/components/rpc_base/
)


set(LIBRARIES
  policy_struct
  rpc_base
)

set (SOURCES
  main.cpp 
)

add_executable(policyValidator ${SOURCES})
target_link_libraries(policyValidator ${LIBRARIES})