2 #Set up visual studio filters
\r
5 SOURCE_GROUP(KDIS FILES ${KDIS_SRC_BASE_H})
\r
6 SOURCE_GROUP(KDIS\\DataTypes FILES ${KDIS_SRC_DATATYPES_H})
\r
7 SOURCE_GROUP(KDIS\\DataTypes\\Enums FILES ${KDIS_SRC_ENUMS_H})
\r
8 SOURCE_GROUP(KDIS\\PDU FILES ${KDIS_SRC_PDU_BASE_H})
\r
9 SOURCE_GROUP(KDIS\\PDU\\Distributed_Emission_Regeneration FILES ${KDIS_SRC_PDU_DER_H})
\r
10 SOURCE_GROUP(KDIS\\PDU\\Entity_Info_Interaction FILES ${KDIS_SRC_PDU_EII_H})
\r
11 SOURCE_GROUP(KDIS\\PDU\\Entity_Management FILES ${KDIS_SRC_PDU_EM_H})
\r
12 SOURCE_GROUP(KDIS\\PDU\\Live_Entity FILES ${KDIS_SRC_PDU_LE_H})
\r
13 SOURCE_GROUP(KDIS\\PDU\\Logistics FILES ${KDIS_SRC_PDU_L_H})
\r
14 SOURCE_GROUP(KDIS\\PDU\\Minefield FILES ${KDIS_SRC_PDU_M_H})
\r
15 SOURCE_GROUP(KDIS\\PDU\\Radio_Communications FILES ${KDIS_SRC_PDU_R_H})
\r
16 SOURCE_GROUP(KDIS\\PDU\\Simulation_Management FILES ${KDIS_SRC_PDU_SM_H})
\r
17 SOURCE_GROUP(KDIS\\PDU\\Simulation_Management_With_Reliability FILES ${KDIS_SRC_PDU_SMWR_H})
\r
18 SOURCE_GROUP(KDIS\\PDU\\Synthetic_Environment FILES ${KDIS_SRC_PDU_SE_H})
\r
19 SOURCE_GROUP(KDIS\\PDU\\Warfare FILES ${KDIS_SRC_PDU_W_H})
\r
20 SOURCE_GROUP(KDIS\\PDU\\Information_Operations FILES ${KDIS_SRC_PDU_IO_H})
\r
21 SOURCE_GROUP(KDIS\\Extras FILES ${KDIS_SRC_EX_H})
\r
22 SOURCE_GROUP(KDIS\\Network FILES ${KDIS_SRC_NET_H})
\r
25 SOURCE_GROUP(KDIS FILES ${KDIS_SRC_BASE_CPP})
\r
26 SOURCE_GROUP(KDIS\\DataTypes FILES ${KDIS_SRC_DATATYPES_CPP})
\r
27 SOURCE_GROUP(KDIS\\DataTypes\\Enums FILES ${KDIS_SRC_ENUMS_CPP})
\r
28 SOURCE_GROUP(KDIS\\PDU FILES ${KDIS_SRC_PDU_BASE_CPP})
\r
29 SOURCE_GROUP(KDIS\\PDU\\Distributed_Emission_Regeneration FILES ${KDIS_SRC_PDU_DER_CPP})
\r
30 SOURCE_GROUP(KDIS\\PDU\\Entity_Info_Interaction FILES ${KDIS_SRC_PDU_EII_CPP})
\r
31 SOURCE_GROUP(KDIS\\PDU\\Entity_Management FILES ${KDIS_SRC_PDU_EM_CPP})
\r
32 SOURCE_GROUP(KDIS\\PDU\\Live_Entity FILES ${KDIS_SRC_PDU_LE_CPP})
\r
33 SOURCE_GROUP(KDIS\\PDU\\Logistics FILES ${KDIS_SRC_PDU_L_CPP})
\r
34 SOURCE_GROUP(KDIS\\PDU\\Minefield FILES ${KDIS_SRC_PDU_M_CPP})
\r
35 SOURCE_GROUP(KDIS\\PDU\\Radio_Communications FILES ${KDIS_SRC_PDU_R_CPP})
\r
36 SOURCE_GROUP(KDIS\\PDU\\Simulation_Management FILES ${KDIS_SRC_PDU_SM_CPP})
\r
37 SOURCE_GROUP(KDIS\\PDU\\Simulation_Management_With_Reliability FILES ${KDIS_SRC_PDU_SMWR_CPP})
\r
38 SOURCE_GROUP(KDIS\\PDU\\Synthetic_Environment FILES ${KDIS_SRC_PDU_SE_CPP})
\r
39 SOURCE_GROUP(KDIS\\PDU\\Warfare FILES ${KDIS_SRC_PDU_W_CPP})
\r
40 SOURCE_GROUP(KDIS\\PDU\\Information_Operations FILES ${KDIS_SRC_PDU_IO_CPP})
\r
41 SOURCE_GROUP(KDIS\\Extras FILES ${KDIS_SRC_EX_CPP})
\r
42 SOURCE_GROUP(KDIS\\Network FILES ${KDIS_SRC_NET_CPP})
\r
44 #Include directories in project settings
\r
46 INCLUDE_DIRECTORIES(${KDIS_SOURCE_DIR})
\r
47 INCLUDE_DIRECTORIES(${KDIS_SOURCE_DIR}/Examples)
\r
53 ${KDIS_SRC_DATATYPES_H}
\r
55 ${KDIS_SRC_PDU_BASE_H}
\r
56 ${KDIS_SRC_PDU_DER_H}
\r
57 ${KDIS_SRC_PDU_EII_H}
\r
58 ${KDIS_SRC_PDU_EM_H}
\r
59 ${KDIS_SRC_PDU_LE_H}
\r
63 ${KDIS_SRC_PDU_SM_H}
\r
64 ${KDIS_SRC_PDU_SMWR_H}
\r
65 ${KDIS_SRC_PDU_SE_H}
\r
67 ${KDIS_SRC_PDU_IO_H}
\r
73 IF(NOT BUILD_EXAMPLES_TO_LINK_TO_LIB)
\r
76 ${KDIS_SRC_BASE_CPP}
\r
77 ${KDIS_SRC_DATATYPES_CPP}
\r
78 ${KDIS_SRC_ENUMS_CPP}
\r
79 ${KDIS_SRC_PDU_BASE_CPP}
\r
80 ${KDIS_SRC_PDU_DER_CPP}
\r
81 ${KDIS_SRC_PDU_EII_CPP}
\r
82 ${KDIS_SRC_PDU_EM_CPP}
\r
83 ${KDIS_SRC_PDU_LE_CPP}
\r
84 ${KDIS_SRC_PDU_L_CPP}
\r
85 ${KDIS_SRC_PDU_M_CPP}
\r
86 ${KDIS_SRC_PDU_R_CPP}
\r
87 ${KDIS_SRC_PDU_SM_CPP}
\r
88 ${KDIS_SRC_PDU_SMWR_CPP}
\r
89 ${KDIS_SRC_PDU_SE_CPP}
\r
90 ${KDIS_SRC_PDU_W_CPP}
\r
91 ${KDIS_SRC_PDU_IO_CPP}
\r
96 ENDIF(NOT BUILD_EXAMPLES_TO_LINK_TO_LIB)
\r
98 SET(KDIS_FILES ${KDIS_FILES_CPP} ${KDIS_FILES_H} )
\r
100 SET(BIN_NAME Example_LogPlayback)
\r
102 ADD_EXECUTABLE(${BIN_NAME} ${KDIS_FILES})
\r
104 SET_PROPERTY(TARGET Example_LogPlayback PROPERTY FOLDER "Examples/Logging")
\r
106 #Lower the warning level
\r
108 ADD_DEFINITIONS(/W1)
\r
111 IF(BUILD_EXAMPLES_TO_LINK_TO_LIB)
\r
113 IF(EXAMPLES_USE_STATIC_OR_SHARED_LIB MATCHES STATIC)
\r
114 TARGET_LINK_LIBRARIES(${BIN_NAME} KDIS_LIB)
\r
115 ENDIF(EXAMPLES_USE_STATIC_OR_SHARED_LIB MATCHES STATIC)
\r
117 IF(EXAMPLES_USE_STATIC_OR_SHARED_LIB MATCHES SHARED)
\r
118 TARGET_LINK_LIBRARIES(${BIN_NAME} KDIS_DLL)
\r
119 ADD_DEFINITIONS(-D "IMPORT_KDIS")
\r
120 ENDIF(EXAMPLES_USE_STATIC_OR_SHARED_LIB MATCHES SHARED)
\r
122 ENDIF(BUILD_EXAMPLES_TO_LINK_TO_LIB)
\r
124 IF(DIS_VERSION MATCHES 6)
\r
125 ADD_DEFINITIONS(-D "DIS_VERSION=6")
\r
126 ENDIF(DIS_VERSION MATCHES 6)
\r
128 IF(DIS_VERSION MATCHES 5)
\r
129 ADD_DEFINITIONS(-D "DIS_VERSION=5")
\r
130 ENDIF(DIS_VERSION MATCHES 5)
\r
132 IF(DIS_VERSION MATCHES 7)
\r
133 ADD_DEFINITIONS(-D "DIS_VERSION=7")
\r
134 ENDIF(DIS_VERSION MATCHES 7)
\r
136 IF(KDIS_USE_ENUM_DESCRIPTORS)
\r
137 ADD_DEFINITIONS(-D "KDIS_USE_ENUM_DESCRIPTORS")
\r
138 ENDIF(KDIS_USE_ENUM_DESCRIPTORS)
\r
140 TARGET_LINK_LIBRARIES(${BIN_NAME} ${RT_LIBRARY})
\r