@@ -54,6 +54,19 @@ if(NOT WITH_INET)
54
54
endif ()
55
55
endif ()
56
56
57
+ ##############################
58
+ # Artery build configuration #
59
+ ##############################
60
+
61
+ # use "RelWithDebInfo" as default build type
62
+ if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES )
63
+ set (CMAKE_BUILD_TYPE "RelWithDebInfo" CACHE STRING "CMake build type" FORCE )
64
+ set_property (CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release" "MinSizeRel" "RelWithDebInfo" )
65
+ endif ()
66
+
67
+ # running simulations with opp_run requires shared libraries
68
+ set (BUILD_SHARED_LIBS ON CACHE INTERNAL "Cached for propagation to sub-projects with older CMake versions" )
69
+
57
70
###############################
58
71
# Required packages & scripts #
59
72
###############################
@@ -106,18 +119,9 @@ macro(add_artery_feature name)
106
119
install (TARGETS ${name} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} )
107
120
endmacro ()
108
121
109
- ##############################
110
- # Artery build configuration #
111
- ##############################
112
-
113
- # use "RelWithDebInfo" as default build type
114
- if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES )
115
- set (CMAKE_BUILD_TYPE "RelWithDebInfo" CACHE STRING "CMake build type" FORCE )
116
- set_property (CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release" "MinSizeRel" "RelWithDebInfo" )
117
- endif ()
118
-
119
- # running simulations with opp_run requires shared libraries
120
- set (BUILD_SHARED_LIBS ON CACHE INTERNAL "Cached for propagation to sub-projects with older CMake versions" )
122
+ ##########
123
+ # Artery #
124
+ ##########
121
125
122
126
add_subdirectory (src/traci )
123
127
add_subdirectory (src/artery )
0 commit comments