Skip to content
Snippets Groups Projects
Commit 14f70614 authored by Ansgar Burchardt's avatar Ansgar Burchardt Committed by ansgar
Browse files

[cmake] Get rid of hardcoded directories.

[[Imported from SVN: r12753]]
parent cfc03277
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,6 @@ dune_project()
find_package(PkgConfig)
set(ENV{PKG_CONFIG_PATH} "/home/data/ansgar/dis/build/snout-gcc-4.8.1/install/lib/pkgconfig")
pkg_check_modules(IPOPT REQUIRED ipopt)
#find_path(IPOPT_INCLUDE_DIR IpoptConfig.h
# HINTS "${PC_IPOPT_INCLUDEDIR}" "${PC_IPOPT_INCLUDEDIRS}")
......@@ -27,14 +26,11 @@ set(HAVE_IPOPT ${IPOPT_FOUND})
include_directories(${IPOPT_INCLUDE_DIRS})
find_library(DL_LIBRARY dl)
find_library(COINHSL_LIBRARY coinhsl)
function(add_ipopt_flags _targets)
foreach(_target ${_targets})
# set_property(TARGET ${_target}
# APPEND
# PROPERTY COMPILE_FLAGS ${IPOPT_CFLAGS})
target_link_libraries(${_target} ${COINHSL_LIBRARY} ${IPOPT_LIBRARY} ${DL_LIBRARY})
target_compile_options(${_target} PRIVATE ${IPOPT_CFLAGS})
target_link_libraries(${_target} ${IPOPT_LIBRARY} ${DL_LIBRARY})
endforeach(_target ${_targets})
endfunction(add_ipopt_flags)
......@@ -49,7 +45,6 @@ foreach(_program ${programs})
add_ipopt_flags(${_program})
add_dune_ug_flags(${_program})
add_dune_psurface_flags(${_program})
target_link_libraries(${_program} /home/data/ansgar/dis/build/snout-gcc-4.8.1/install/lib/libdunegridglue.so)
endforeach()
add_executable(prepare-boundary prepare-boundary.cc)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment