-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make plplot detection automatic. Fix up a few omissions.
- Loading branch information
Showing
27 changed files
with
1,580 additions
and
1,120 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
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,34 @@ | ||
# | ||
# copyright : (c) 2010 Maxime Lenoir, Alain Coulais, | ||
# Sylwester Arabas and Orion Poplawski | ||
# | ||
# Modified to find Fortran rather than C++ libraries: | ||
# July 2012: James Tappin | ||
# | ||
# This program is free software; you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation; either version 2 of the License, or | ||
# (at your option) any later version. | ||
# | ||
|
||
find_package(PkgConfig) | ||
pkg_check_modules(PLPLOTF95 QUIET plplotd-f95) | ||
|
||
find_library(PLPLOT_LIBRARY NAMES plplotd) | ||
find_library(PLPLOTF95_LIBRARY NAMES plplotf95d) | ||
find_library(PLPLOTF95C_LIBRARY NAMES plplotf95cd) | ||
set(PLPLOT_LIBRARIES ${PLPLOT_LIBRARY} ${PLPLOTF95_LIBRARY} ${PLPLOTF95C_LIBRARY}) | ||
find_path(PLPLOT_INCLUDE_DIR NAMES plplot/plplot.h) | ||
find_path(PLPLOT_MODULE_DIR NAMES plplot.mod PATHS ${PLPLOTF95_INCLUDE_DIRS}) | ||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(PLPLOT DEFAULT_MSG PLPLOT_LIBRARIES | ||
PLPLOT_INCLUDE_DIR) | ||
|
||
mark_as_advanced( | ||
PLPLOT_LIBRARY | ||
PLPLOTCF95_LIBRARY | ||
PLPLOTCF95C_LIBRARY | ||
PLPLOT_LIBRARIES | ||
PLPLOT_INCLUDE_DIR | ||
PLPLOT_MODULE_DIR | ||
) |
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,65 @@ | ||
# Free Software Foundation, Inc. | ||
# | ||
# This file is part of the gtk-fortran gtk+ Fortran Interface library. | ||
# | ||
# This is free software; you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation; either version 3, or (at your option) | ||
# any later version. | ||
# | ||
# This software is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# Under Section 7 of GPL version 3, you are granted additional | ||
# permissions described in the GCC Runtime Library Exception, version | ||
# 3.1, as published by the Free Software Foundation. | ||
# | ||
# You should have received a copy of the GNU General Public License along with | ||
# this program; see the files COPYING3 and COPYING.RUNTIME respectively. | ||
# If not, see <http://www.gnu.org/licenses/>. | ||
# | ||
# Contributed by James Tappin: 7/31/2012 | ||
|
||
# set(sources | ||
# "plplot_extra.f90") | ||
|
||
include_directories("/usr/include") | ||
#include_directories(${PLPLOT_INCLUDES}) | ||
include_directories("${CMAKE_BINARY_DIR}/plplot") | ||
include_directories("${CMAKE_BINARY_DIR}/src") | ||
include_directories(${GTK_INCLUDES}) | ||
#include_directories(${PLPLOT_MODULE_DIR}) | ||
|
||
add_custom_command( | ||
OUTPUT plplot_extra.mod | ||
COMMAND ${CMAKE_Fortran_COMPILER} -c ${CMAKE_CURRENT_SOURCE_DIR}/plplot_extra.f90 | ||
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/plplot_extra.f90) | ||
add_custom_target(plplot_extra_module ALL DEPENDS plplot_extra.mod) | ||
|
||
install(FILES | ||
"${CMAKE_CURRENT_BINARY_DIR}/plplot_extra.mod" | ||
DESTINATION include/gtk-2-fortran) | ||
|
||
add_executable(hl_plplot1e "hl_plplot1e.f90") | ||
add_dependencies(hl_plplot1e plplot_extra_module) | ||
target_link_libraries(hl_plplot1e gtk-fortran_static ${GTK_LIBRARIES} ${PLPLOT_LIBRARIES}) | ||
add_test(hl_plplot1e ./hl_plplot1e) | ||
|
||
add_executable(hl_plplot8e "hl_plplot8e.f90") | ||
add_dependencies(hl_plplot8e plplot_extra_module) | ||
target_link_libraries(hl_plplot8e gtk-fortran_static ${GTK_LIBRARIES} ${PLPLOT_LIBRARIES}) | ||
add_test(hl_plplot8e ./hl_plplot8e) | ||
|
||
add_executable(hl_plplot17e "hl_plplot17e.f90") | ||
add_dependencies(hl_plplot17e plplot_extra_module) | ||
target_link_libraries(hl_plplot17e gtk-fortran_static ${GTK_LIBRARIES} ${PLPLOT_LIBRARIES}) | ||
add_test(hl_plplot17e ./hl_plplot17e) | ||
|
||
# Excluded in this version as it needs at least 5.9.7 and Oneiric doesn't provide it. | ||
# add_executable(hl_plplot30e "hl_plplot30e.f90") | ||
# add_dependencies(hl_plplot30e plplot_extra_module) | ||
# target_link_libraries(hl_plplot30e gtk-fortran_static ${GTK_LIBRARIES} ${PLPLOT_LIBRARIES}) | ||
# add_test(hl_plplot30e ./hl_plplot30e) | ||
|
File renamed without changes.
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
Oops, something went wrong.