Skip to content

Commit

Permalink
Reconfiguring build path and main folder to handle multiple compiled …
Browse files Browse the repository at this point in the history
…executables
  • Loading branch information
grf14003 committed Jan 28, 2020
1 parent 8d66382 commit 40d3d86
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 17 deletions.
12 changes: 8 additions & 4 deletions breadcrumbs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ message("Source directory: ${CMAKE_SOURCE_DIR}")
message("Build directory: ${CMAKE_BINARY_DIR}")
message("Executable directory: ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}")
message("Library directory: ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}")
message("Header file directory: ${INCLUDES_DIRECTORY}")
message("Header file directory: ${INCLUSDES_DIRECTORY}")

# Configure a header file to pass some of the CMake settings to the source code
set (Bfs_ALGORITHM_SERVER_PORT \"27634\")
Expand All @@ -40,8 +40,12 @@ include_directories("${CMAKE_SOURCE_DIR}")

# puts all .cpp files inside src to the SOURCES variable
# TODO: replace this with a script for collecting cpp files
file(GLOB_RECURSE SOURCES CONFIGURE_DEPENDS "${CMAKE_SOURCE_DIR}/*.cpp")
message("Source files: ${SOURCES}")
file(GLOB_RECURSE ALGOS CONFIGURE_DEPENDS "${CMAKE_SOURCE_DIR}/algos/*.cpp")
file(GLOB_RECURSE COMMS CONFIGURE_DEPENDS "${CMAKE_SOURCE_DIR}/comms/*.cpp")
file(GLOB_RECURSE CONFIG CONFIGURE_DEPENDS "${CMAKE_SOURCE_DIR}/config/*.cpp")
file(GLOB_RECURSE LOG CONFIGURE_DEPENDS "${CMAKE_SOURCE_DIR}/logging/*.cpp")
message("Source files: ${ALGOS}")

# Adding executables
add_executable(Breadcrumbs ${SOURCES})
add_executable(Breadcrumbs "${CMAKE_SOURCE_DIR}/main/Breadcrumbs.cpp" ${ALGOS} ${COMMS} ${CONFIG} ${LOG})
add_executable(VirtualOutputProcessor "${CMAKE_SOURCE_DIR}/main/VirtualOutputProcessor.cpp" ${ALGOS} ${COMMS} ${CONFIG} ${LOG})
3 changes: 2 additions & 1 deletion breadcrumbs/scripts/startbfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ def start_program_no_hang(command):


def main():
start_program_no_hang("start cmd.exe /k \"..\\bin\\Breadcrumbs.exe\"")
os.system("cmd /c ..\\bin\\Breadcrumbs.exe")
print("DONE")


if __name__ == "__main__":
Expand Down
4 changes: 0 additions & 4 deletions breadcrumbs/src/io/IOProcessor.cpp

This file was deleted.

Empty file removed breadcrumbs/src/io/in_procs/.blank
Empty file.
Empty file.
8 changes: 0 additions & 8 deletions breadcrumbs/src/io/out_procs/VirtualOutputProcessor.cpp

This file was deleted.

File renamed without changes.
5 changes: 5 additions & 0 deletions breadcrumbs/src/main/VirtualOutputProcessor.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

int main()
{
return 0;
}

0 comments on commit 40d3d86

Please sign in to comment.