-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1135d15
commit 5c8cacc
Showing
2 changed files
with
7 additions
and
28 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
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 |
---|---|---|
@@ -1,46 +1,25 @@ | ||
# Link in dependencies necessary to generate plots | ||
find_package(fplot) | ||
find_package(ferror 1.3.0) | ||
find_package(collections) | ||
find_package(fcore) | ||
|
||
# Van Der Pol Example | ||
add_executable(vanderpol vanderpol.f90) | ||
target_link_libraries(vanderpol integral fplot) | ||
target_link_libraries(vanderpol integral fplot fcore) | ||
|
||
# Lorenz Example | ||
add_executable(lorenz lorenz.f90) | ||
target_link_libraries(lorenz integral fplot) | ||
target_link_libraries(lorenz integral fplot fcore) | ||
|
||
# Bouncing Ball Example | ||
add_executable(bouncing_ball bouncing_ball.f90) | ||
target_link_libraries(bouncing_ball integral fplot) | ||
target_link_libraries(bouncing_ball integral fplot fcore) | ||
|
||
# Integral Example 1 | ||
add_executable(integral_example_1 integral_example_1.f90) | ||
target_link_libraries(integral_example_1 integral) | ||
|
||
# Pendulum Example | ||
add_executable(pendulum pendulum.f90) | ||
target_link_libraries(pendulum integral fplot) | ||
target_link_libraries(pendulum integral fplot fcore) | ||
|
||
# ------------------------------------------------------------------------------ | ||
if (WIN32) | ||
# Copy shared libraries necessary to generate plots to the runtime directory | ||
get_target_property(ferror_LibLocation ferror LOCATION) | ||
add_custom_command(TARGET vanderpol POST_BUILD | ||
COMMAND ${CMAKE_COMMAND} -E copy_if_different | ||
${ferror_LibLocation} $<TARGET_FILE_DIR:vanderpol> | ||
) | ||
|
||
get_target_property(fplot_LibLocation fplot LOCATION) | ||
add_custom_command(TARGET vanderpol POST_BUILD | ||
COMMAND ${CMAKE_COMMAND} -E copy_if_different | ||
${fplot_LibLocation} $<TARGET_FILE_DIR:vanderpol> | ||
) | ||
|
||
get_target_property(collections_LibLocation collections LOCATION) | ||
add_custom_command(TARGET vanderpol POST_BUILD | ||
COMMAND ${CMAKE_COMMAND} -E copy_if_different | ||
${collections_LibLocation} $<TARGET_FILE_DIR:vanderpol> | ||
) | ||
endif() |