-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
32 lines (23 loc) · 922 Bytes
/
CMakeLists.txt
File metadata and controls
32 lines (23 loc) · 922 Bytes
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
cmake_minimum_required(VERSION 3.19)
set(CMAKE_VERBOSE_MAKEFILE ON) # extra noise from cmake
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_COLOR_MAKEFILE ON)
# top level cmake file for P4API.NET
project(P4ApiNet DESCRIPTION "p4api.net project" LANGUAGES CSharp CPP)
message( NOTICE "Platform: ${CMAKE_SYSTEM_NAME}" ) # 'Windows' 'Linux' 'Darwin'
message( NOTICE "Version: ${P4ApiNet_VERSION}" )
message( NOTICE "Build Type: ${CMAKE_BUILD_TYPE}" )
if (WIN32)
set(CMAKE_SHARED_LIBRARY_PREFIX "")
endif()
add_subdirectory(p4bridge)
add_subdirectory(p4bridge-unit-test)
add_subdirectory(p4bridgeStressTest)
add_subdirectory(p4api.net)
add_subdirectory(p4api.net-unit-test)
add_custom_target(bridgetests)
add_dependencies(bridgetests p4bridge-unit-test p4bridgeStressTest)
add_custom_target(tests)
add_dependencies(tests p4api.net-unit-test)
set(P4APINET_SOURCES )
add_executable(P4ApiNet ${P4APINET_SOURCES})