forked from xcompact3d/Incompact3d
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from fangjian19/master
modi cmakelist in src and add post_vtk to ensure everything works
- Loading branch information
Showing
5 changed files
with
571 additions
and
2 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,13 @@ | ||
include_directories(${CMAKE_SOURCE_DIR}/post_vtk) | ||
|
||
message(STATUS "CMAKE_SOURCE_DIR: ${CMAKE_SOURCE_DIR}") | ||
message(STATUS "PROJECT_BINARY_DIR: ${PROJECT_BINARY_DIR}") | ||
|
||
add_executable(xcompact3d_paraview_vtk | ||
paraview_incompact3d_vtk.f90) | ||
|
||
install(TARGETS xcompact3d_paraview_vtk | ||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} | ||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} | ||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} | ||
) |
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,242 @@ | ||
# CMAKE generated file: DO NOT EDIT! | ||
# Generated by "Unix Makefiles" Generator, CMake Version 3.22 | ||
|
||
# Default target executed when no arguments are given to make. | ||
default_target: all | ||
.PHONY : default_target | ||
|
||
# Allow only one "make -f Makefile2" at a time, but pass parallelism. | ||
.NOTPARALLEL: | ||
|
||
#============================================================================= | ||
# Special targets provided by cmake. | ||
|
||
# Disable implicit rules so canonical targets will work. | ||
.SUFFIXES: | ||
|
||
# Disable VCS-based implicit rules. | ||
% : %,v | ||
|
||
# Disable VCS-based implicit rules. | ||
% : RCS/% | ||
|
||
# Disable VCS-based implicit rules. | ||
% : RCS/%,v | ||
|
||
# Disable VCS-based implicit rules. | ||
% : SCCS/s.% | ||
|
||
# Disable VCS-based implicit rules. | ||
% : s.% | ||
|
||
.SUFFIXES: .hpux_make_needs_suffix_list | ||
|
||
# Command-line flag to silence nested $(MAKE). | ||
$(VERBOSE)MAKESILENT = -s | ||
|
||
#Suppress display of executed commands. | ||
$(VERBOSE).SILENT: | ||
|
||
# A target that is always out of date. | ||
cmake_force: | ||
.PHONY : cmake_force | ||
|
||
#============================================================================= | ||
# Set environment variables for the build. | ||
|
||
# The shell in which to execute make rules. | ||
SHELL = /bin/sh | ||
|
||
# The CMake executable. | ||
CMAKE_COMMAND = /usr/bin/cmake | ||
|
||
# The command to remove a file. | ||
RM = /usr/bin/cmake -E rm -f | ||
|
||
# Escaping for special characters. | ||
EQUALS = = | ||
|
||
# The top-level source directory on which CMake was run. | ||
CMAKE_SOURCE_DIR = /mnt/d/WORK/W51_MHD/Incompact3d | ||
|
||
# The top-level build directory on which CMake was run. | ||
CMAKE_BINARY_DIR = /mnt/d/WORK/W51_MHD/Incompact3d | ||
|
||
#============================================================================= | ||
# Targets provided globally by CMake. | ||
|
||
# Special rule for the target test | ||
test: | ||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running tests..." | ||
/usr/bin/ctest --force-new-ctest-process $(ARGS) | ||
.PHONY : test | ||
|
||
# Special rule for the target test | ||
test/fast: test | ||
.PHONY : test/fast | ||
|
||
# Special rule for the target edit_cache | ||
edit_cache: | ||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake cache editor..." | ||
/usr/bin/ccmake -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) | ||
.PHONY : edit_cache | ||
|
||
# Special rule for the target edit_cache | ||
edit_cache/fast: edit_cache | ||
.PHONY : edit_cache/fast | ||
|
||
# Special rule for the target rebuild_cache | ||
rebuild_cache: | ||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..." | ||
/usr/bin/cmake --regenerate-during-build -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) | ||
.PHONY : rebuild_cache | ||
|
||
# Special rule for the target rebuild_cache | ||
rebuild_cache/fast: rebuild_cache | ||
.PHONY : rebuild_cache/fast | ||
|
||
# Special rule for the target list_install_components | ||
list_install_components: | ||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Available install components are: \"Unspecified\"" | ||
.PHONY : list_install_components | ||
|
||
# Special rule for the target list_install_components | ||
list_install_components/fast: list_install_components | ||
.PHONY : list_install_components/fast | ||
|
||
# Special rule for the target install | ||
install: preinstall | ||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..." | ||
/usr/bin/cmake -P cmake_install.cmake | ||
.PHONY : install | ||
|
||
# Special rule for the target install | ||
install/fast: preinstall/fast | ||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..." | ||
/usr/bin/cmake -P cmake_install.cmake | ||
.PHONY : install/fast | ||
|
||
# Special rule for the target install/local | ||
install/local: preinstall | ||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing only the local directory..." | ||
/usr/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake | ||
.PHONY : install/local | ||
|
||
# Special rule for the target install/local | ||
install/local/fast: preinstall/fast | ||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing only the local directory..." | ||
/usr/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake | ||
.PHONY : install/local/fast | ||
|
||
# Special rule for the target install/strip | ||
install/strip: preinstall | ||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing the project stripped..." | ||
/usr/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake | ||
.PHONY : install/strip | ||
|
||
# Special rule for the target install/strip | ||
install/strip/fast: preinstall/fast | ||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing the project stripped..." | ||
/usr/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake | ||
.PHONY : install/strip/fast | ||
|
||
# The main all target | ||
all: cmake_check_build_system | ||
cd /mnt/d/WORK/W51_MHD/Incompact3d && $(CMAKE_COMMAND) -E cmake_progress_start /mnt/d/WORK/W51_MHD/Incompact3d/CMakeFiles /mnt/d/WORK/W51_MHD/Incompact3d/post_vtk//CMakeFiles/progress.marks | ||
cd /mnt/d/WORK/W51_MHD/Incompact3d && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 post_vtk/all | ||
$(CMAKE_COMMAND) -E cmake_progress_start /mnt/d/WORK/W51_MHD/Incompact3d/CMakeFiles 0 | ||
.PHONY : all | ||
|
||
# The main clean target | ||
clean: | ||
cd /mnt/d/WORK/W51_MHD/Incompact3d && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 post_vtk/clean | ||
.PHONY : clean | ||
|
||
# The main clean target | ||
clean/fast: clean | ||
.PHONY : clean/fast | ||
|
||
# Prepare targets for installation. | ||
preinstall: all | ||
cd /mnt/d/WORK/W51_MHD/Incompact3d && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 post_vtk/preinstall | ||
.PHONY : preinstall | ||
|
||
# Prepare targets for installation. | ||
preinstall/fast: | ||
cd /mnt/d/WORK/W51_MHD/Incompact3d && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 post_vtk/preinstall | ||
.PHONY : preinstall/fast | ||
|
||
# clear depends | ||
depend: | ||
cd /mnt/d/WORK/W51_MHD/Incompact3d && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 | ||
.PHONY : depend | ||
|
||
# Convenience name for target. | ||
post_vtk/CMakeFiles/xcompact3d_paraview_vtk.dir/rule: | ||
cd /mnt/d/WORK/W51_MHD/Incompact3d && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 post_vtk/CMakeFiles/xcompact3d_paraview_vtk.dir/rule | ||
.PHONY : post_vtk/CMakeFiles/xcompact3d_paraview_vtk.dir/rule | ||
|
||
# Convenience name for target. | ||
xcompact3d_paraview_vtk: post_vtk/CMakeFiles/xcompact3d_paraview_vtk.dir/rule | ||
.PHONY : xcompact3d_paraview_vtk | ||
|
||
# fast build rule for target. | ||
xcompact3d_paraview_vtk/fast: | ||
cd /mnt/d/WORK/W51_MHD/Incompact3d && $(MAKE) $(MAKESILENT) -f post_vtk/CMakeFiles/xcompact3d_paraview_vtk.dir/build.make post_vtk/CMakeFiles/xcompact3d_paraview_vtk.dir/build | ||
.PHONY : xcompact3d_paraview_vtk/fast | ||
|
||
paraview_incompact3d_vtk.o: paraview_incompact3d_vtk.f90.o | ||
.PHONY : paraview_incompact3d_vtk.o | ||
|
||
# target to build an object file | ||
paraview_incompact3d_vtk.f90.o: | ||
cd /mnt/d/WORK/W51_MHD/Incompact3d && $(MAKE) $(MAKESILENT) -f post_vtk/CMakeFiles/xcompact3d_paraview_vtk.dir/build.make post_vtk/CMakeFiles/xcompact3d_paraview_vtk.dir/paraview_incompact3d_vtk.f90.o | ||
.PHONY : paraview_incompact3d_vtk.f90.o | ||
|
||
paraview_incompact3d_vtk.i: paraview_incompact3d_vtk.f90.i | ||
.PHONY : paraview_incompact3d_vtk.i | ||
|
||
# target to preprocess a source file | ||
paraview_incompact3d_vtk.f90.i: | ||
cd /mnt/d/WORK/W51_MHD/Incompact3d && $(MAKE) $(MAKESILENT) -f post_vtk/CMakeFiles/xcompact3d_paraview_vtk.dir/build.make post_vtk/CMakeFiles/xcompact3d_paraview_vtk.dir/paraview_incompact3d_vtk.f90.i | ||
.PHONY : paraview_incompact3d_vtk.f90.i | ||
|
||
paraview_incompact3d_vtk.s: paraview_incompact3d_vtk.f90.s | ||
.PHONY : paraview_incompact3d_vtk.s | ||
|
||
# target to generate assembly for a file | ||
paraview_incompact3d_vtk.f90.s: | ||
cd /mnt/d/WORK/W51_MHD/Incompact3d && $(MAKE) $(MAKESILENT) -f post_vtk/CMakeFiles/xcompact3d_paraview_vtk.dir/build.make post_vtk/CMakeFiles/xcompact3d_paraview_vtk.dir/paraview_incompact3d_vtk.f90.s | ||
.PHONY : paraview_incompact3d_vtk.f90.s | ||
|
||
# Help Target | ||
help: | ||
@echo "The following are some of the valid targets for this Makefile:" | ||
@echo "... all (the default if no target is provided)" | ||
@echo "... clean" | ||
@echo "... depend" | ||
@echo "... edit_cache" | ||
@echo "... install" | ||
@echo "... install/local" | ||
@echo "... install/strip" | ||
@echo "... list_install_components" | ||
@echo "... rebuild_cache" | ||
@echo "... test" | ||
@echo "... xcompact3d_paraview_vtk" | ||
@echo "... paraview_incompact3d_vtk.o" | ||
@echo "... paraview_incompact3d_vtk.i" | ||
@echo "... paraview_incompact3d_vtk.s" | ||
.PHONY : help | ||
|
||
|
||
|
||
#============================================================================= | ||
# Special targets to cleanup operation of make. | ||
|
||
# Special rule to run CMake to check the build system integrity. | ||
# No rule that depends on this can have commands that come from listfiles | ||
# because they might be regenerated. | ||
cmake_check_build_system: | ||
cd /mnt/d/WORK/W51_MHD/Incompact3d && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 | ||
.PHONY : cmake_check_build_system | ||
|
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,60 @@ | ||
# Install script for directory: /mnt/d/WORK/W51_MHD/Incompact3d/post_vtk | ||
|
||
# Set the install prefix | ||
if(NOT DEFINED CMAKE_INSTALL_PREFIX) | ||
set(CMAKE_INSTALL_PREFIX "/mnt/d/WORK/W51_MHD/Incompact3d/opt") | ||
endif() | ||
string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") | ||
|
||
# Set the install configuration name. | ||
if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) | ||
if(BUILD_TYPE) | ||
string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" | ||
CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") | ||
else() | ||
set(CMAKE_INSTALL_CONFIG_NAME "RELEASE") | ||
endif() | ||
message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") | ||
endif() | ||
|
||
# Set the component getting installed. | ||
if(NOT CMAKE_INSTALL_COMPONENT) | ||
if(COMPONENT) | ||
message(STATUS "Install component: \"${COMPONENT}\"") | ||
set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") | ||
else() | ||
set(CMAKE_INSTALL_COMPONENT) | ||
endif() | ||
endif() | ||
|
||
# Install shared libraries without execute permission? | ||
if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) | ||
set(CMAKE_INSTALL_SO_NO_EXE "1") | ||
endif() | ||
|
||
# Is this installation the result of a crosscompile? | ||
if(NOT DEFINED CMAKE_CROSSCOMPILING) | ||
set(CMAKE_CROSSCOMPILING "FALSE") | ||
endif() | ||
|
||
# Set default install directory permissions. | ||
if(NOT DEFINED CMAKE_OBJDUMP) | ||
set(CMAKE_OBJDUMP "/usr/bin/objdump") | ||
endif() | ||
|
||
if("x${CMAKE_INSTALL_COMPONENT}x" STREQUAL "xUnspecifiedx" OR NOT CMAKE_INSTALL_COMPONENT) | ||
if(EXISTS "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/xcompact3d_paraview_vtk" AND | ||
NOT IS_SYMLINK "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/xcompact3d_paraview_vtk") | ||
file(RPATH_CHECK | ||
FILE "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/xcompact3d_paraview_vtk" | ||
RPATH "") | ||
endif() | ||
file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/bin" TYPE EXECUTABLE FILES "/mnt/d/WORK/W51_MHD/Incompact3d/bin/xcompact3d_paraview_vtk") | ||
if(EXISTS "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/xcompact3d_paraview_vtk" AND | ||
NOT IS_SYMLINK "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/xcompact3d_paraview_vtk") | ||
if(CMAKE_INSTALL_DO_STRIP) | ||
execute_process(COMMAND "/usr/bin/strip" "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/xcompact3d_paraview_vtk") | ||
endif() | ||
endif() | ||
endif() | ||
|
Oops, something went wrong.