Skip to content

Commit

Permalink
Add source directory with CMakeLists and main runnable
Browse files Browse the repository at this point in the history
  • Loading branch information
franziska-wegner committed Dec 2, 2023
1 parent b1926f9 commit c8599ee
Show file tree
Hide file tree
Showing 2 changed files with 420 additions and 0 deletions.
44 changes: 44 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# CMakeLists.txt
#
# Created on: 30.01.2019
# Author: Franziska Wegner
#
# Install binaries into the bin folder. The project can be build with any of
# the available cmake generators.
#

include_directories(Boost_INCLUDE_DIRS)

# Define the main binary egoa with the linked source file main.cpp
add_executable(egoa Runnables/main.cpp)
# Link libraries to the binary
target_link_libraries(egoa EGOA)
add_ogdf_coin_if_available(egoa)
add_gurobi_if_available(egoa)

# Other executables
# add_executable(testTemplate Runnables/testTemplate.cpp)
# target_link_libraries(testTemplate EGOA)

# Other executables
if(CPLEX_FOUND)
add_executable(testCplex Runnables/cplexExample.cpp)
target_link_libraries(testCplex EGOA ${CPLEX_LIBRARIES})
endif(CPLEX_FOUND)

if(IPOPT_FOUND)
add_executable(testIpopt1 Runnables/cpp_example.cpp)
target_link_libraries(testIpopt1 EGOA ${IPOPT_LIBRARIES})
endif(IPOPT_FOUND)

# Install binary into the bin directory of the installation directory
# install(TARGETS egoa testTemplate DESTINATION ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
install(TARGETS egoa DESTINATION ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})

# Other executables
# add_executable(convertFiles Runnables/convertFiles.cpp)
# target_link_libraries(convertFiles EGOA)

# add_executable(phase_oscillator_ensemble Runnables/phase_oscillator_ensemble.cpp)
# add_dependencies(phase_oscillator_ensemble Boost)
# target_link_libraries(phase_oscillator_ensemble ${Boost_LIBRARY_DIRS})
Loading

0 comments on commit c8599ee

Please sign in to comment.