-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add source directory with CMakeLists and main runnable
- Loading branch information
1 parent
b1926f9
commit c8599ee
Showing
2 changed files
with
420 additions
and
0 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,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}) |
Oops, something went wrong.