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