Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
iwr
amdis
Commits
8930cc64
Commit
8930cc64
authored
Jun 29, 2012
by
Praetorius, Simon
Browse files
pfc demo updated
parent
b40ffb31
Changes
1
Hide whitespace changes
Inline
Side-by-side
demo/CMakeLists.txt
View file @
8930cc64
...
...
@@ -72,14 +72,15 @@ target_link_libraries("vecheat" ${BASIS_LIBS})
install
(
TARGETS vecheat RUNTIME DESTINATION bin
)
# find tools-directory
find_path
(
TOOLS_DIR NAMES
"baseProblem/BaseProblem.h"
"
diffuseDomain
/Helpers.h"
DOC
"Path to tools directory in AMDiS-trunk dir"
)
find_path
(
TOOLS_DIR NAMES
"baseProblem/BaseProblem.h"
"
misc
/Helpers.h"
DOC
"Path to tools directory in AMDiS-trunk dir"
)
if
(
TOOLS_DIR
)
if
(
NOT EXISTS
${
TOOLS_DIR
}
/
diffuseDomain
/Helpers.h OR NOT EXISTS
${
TOOLS_DIR
}
/baseProblems/BaseProblem.h
)
if
(
NOT EXISTS
${
TOOLS_DIR
}
/
misc
/Helpers.h OR NOT EXISTS
${
TOOLS_DIR
}
/baseProblems/BaseProblem.h
)
message
(
WARNING
"Wrong tools directory! Directory must contain the subdirectories 'diffuseDomain' and 'baseProblems'"
)
else
()
include_directories
(
${
TOOLS_DIR
}
/diffuseDomain
)
include_directories
(
${
TOOLS_DIR
}
/baseProblems
)
include_directories
(
${
TOOLS_DIR
}
/misc
)
set
(
elliptBase src/elliptBaseProblem.cc
)
add_executable
(
"elliptBase"
${
elliptBase
}
)
...
...
@@ -93,7 +94,7 @@ if (TOOLS_DIR)
add_executable
(
"cahn_hilliard"
${
cahn_hilliard
}
)
target_link_libraries
(
"cahn_hilliard"
${
BASIS_LIBS
}
)
set
(
pfc src/pfc.cc
${
TOOLS_DIR
}
/baseProblems/PhaseFieldCrystal_Base.cc
${
TOOLS_DIR
}
/
diffuseDomain
/Helpers.cc
)
set
(
pfc src/pfc.cc
${
TOOLS_DIR
}
/baseProblems/PhaseFieldCrystal_Base.cc
${
TOOLS_DIR
}
/
misc
/Helpers.cc
)
add_executable
(
"pfc"
${
pfc
}
)
target_link_libraries
(
"pfc"
${
BASIS_LIBS
}
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment