Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preliminary CMakeLists.txt (only windows intel fortran) #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions src/windows/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
cmake_minimum_required (VERSION 3.10)
project(shadow3 Fortran)

#find_package(HDF5 REQUIRED COMPONENTS Fortran Fortran_HL)
set(_COMPILE_Fortran " /fpp")
add_definitions(-D_COMPILE4WIN)
SET (DEF_INCLUDE_DIR "../def")
SET (LIB_TYPE STATIC)
#SET (LIB_TYPE SHARED)

ADD_LIBRARY(shadow3 ${LIB_TYPE} shadow_globaldefinitions.f90 stringio.f90 gfile.f90 shadow_beamio.f90 shadow_math.f90 shadow_variables.f90 shadow_roughness.f90 shadow_kernel.f90 shadow_synchrotron.f90 shadow_pre_sync.f90 shadow_pre_sync_urgent.f90 shadow_preprocessors.f90 shadow_postprocessors.f90 shadow_version.f90 shadow_crl.f90
)
target_include_directories(shadow3 PRIVATE ${DEF_INCLUDE_DIR})
message(${DEF_INCLUDE_DIR})

add_executable(shadow3_exe shadow3.f90)
target_link_libraries(shadow3_exe PUBLIC "shadow3")
#ADD_LIBRARY(shadow3 ${LIB_TYPE} stringio.f90)

#add_executable(shadow3 shadow3.f90)
#target_include_directories(myprog PRIVATE ${HDF5_INCLUDE_DIRS})
##target_include_directories(shadow3 PUBLIC "C:/Program Files/HDF_Group/HDF5/1.10.5/include/shared")
#message(${HDF5_INCLUDE_DIRS})
#target_link_libraries(myprog PRIVATE ${HDF5_Fortran_LIBRARIES} ${HDF5_Fortran_HL_LIBRARIES})