-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
137 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
include(FindPkgConfig) | ||
if(NOT PKG_CONFIG_FOUND) | ||
message(STATUS "pkgconf not found") | ||
return() | ||
endif() | ||
|
||
pkg_check_modules(ZMQ libzmq) | ||
if(NOT ZMQ_FOUND) | ||
message(STATUS "zeromq not found") | ||
return() | ||
endif() | ||
|
||
find_package(Protobuf 3.0.0) | ||
if(NOT Protobuf_FOUND) | ||
message(STATUS "protobuf not found") | ||
return() | ||
endif() | ||
|
||
set(proto_source_files | ||
model/messages.proto | ||
) | ||
|
||
protobuf_generate_cpp(PROTO_SRCS PROTO_HDRS ${proto_source_files}) | ||
file(RELATIVE_PATH PROTO_HDRS_REL ${CMAKE_CURRENT_SOURCE_DIR} ${PROTO_HDRS}) | ||
|
||
# TODO generate python file and move to the right location | ||
|
||
set(source_files | ||
helper/opengym-helper.cc | ||
model/container.cc | ||
model/opengym_env.cc | ||
model/opengym_interface.cc | ||
model/spaces.cc | ||
${PROTO_SRCS} | ||
) | ||
|
||
set(header_files | ||
helper/opengym-helper.h | ||
model/container.h | ||
model/opengym_env.h | ||
model/opengym_interface.h | ||
model/spaces.h | ||
${PROTO_HDRS_REL} | ||
) | ||
|
||
build_lib( | ||
LIBNAME opengym | ||
SOURCE_FILES ${source_files} | ||
HEADER_FILES ${header_files} | ||
LIBRARIES_TO_LINK | ||
${libcore} | ||
${ZMQ_LIBRARIES} | ||
${Protobuf_LIBRARIES} | ||
TEST_SOURCES | ||
test/opengym-test-suite.cc | ||
) | ||
|
||
# add location of generated messages.pb.h to include directories | ||
target_include_directories( | ||
${libopengym-obj} | ||
PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}> | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
release ns-3.29 | ||
release ns-3.36 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
build_lib_example( | ||
NAME interference-pattern | ||
SOURCE_FILES interference-pattern/mygym.cc | ||
interference-pattern/sim.cc | ||
LIBRARIES_TO_LINK | ||
${libcore} | ||
${libinternet} | ||
${libopengym} | ||
${libwifi} | ||
) | ||
|
||
build_lib_example( | ||
NAME linear-mesh | ||
SOURCE_FILES linear-mesh/sim.cc | ||
LIBRARIES_TO_LINK | ||
${libapplications} | ||
${libcore} | ||
${libinternet} | ||
${libopengym} | ||
${libwifi} | ||
) | ||
|
||
build_lib_example( | ||
NAME linear-mesh-2 | ||
SOURCE_FILES linear-mesh-2/sim.cc | ||
linear-mesh-2/mygym.cc | ||
LIBRARIES_TO_LINK | ||
${libapplications} | ||
${libcore} | ||
${libinternet} | ||
${libopengym} | ||
${libwifi} | ||
) | ||
|
||
build_lib_example( | ||
NAME opengym | ||
SOURCE_FILES opengym/sim.cc | ||
LIBRARIES_TO_LINK | ||
${libcore} | ||
${libopengym} | ||
) | ||
|
||
build_lib_example( | ||
NAME opengym-2 | ||
SOURCE_FILES opengym-2/sim.cc | ||
opengym-2/mygym.cc | ||
LIBRARIES_TO_LINK | ||
${libcore} | ||
${libopengym} | ||
) | ||
|
||
build_lib_example( | ||
NAME rl-tcp | ||
SOURCE_FILES rl-tcp/sim.cc | ||
rl-tcp/tcp-rl-env.cc | ||
rl-tcp/tcp-rl.cc | ||
LIBRARIES_TO_LINK | ||
${libapplications} | ||
${libcore} | ||
${libflow-monitor} | ||
${libinternet} | ||
${libopengym} | ||
${libpoint-to-point-layout} | ||
${libptp} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.