Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Auto-generated files
Cgismo.h
23 changes: 1 addition & 22 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,9 @@

project(gsCInterface LANGUAGES CXX)

include(CheckLanguage)
check_language(Fortran)
if(CMAKE_Fortran_COMPILER AND NOT NOFORTRAN)
enable_language(Fortran)
include(FortranCInterface)
FortranCInterface_VERIFY(CXX)
else()
message(STATUS "No Fortran support")
endif()

# Apply G+Smo config
include(gsConfig)

if ( CMAKE_SYSTEM_NAME MATCHES "Linux" )
# set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -names lowercase")
elseif ( CMAKE_SYSTEM_NAME MATCHES "Windows" )
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} /names:lowercase")
endif()

## Collect files
aux_header_directory(${CMAKE_CURRENT_SOURCE_DIR}/src ${PROJECT_NAME}_H)
aux_cpp_directory (${CMAKE_CURRENT_SOURCE_DIR}/src ${PROJECT_NAME}_CPP)
Expand All @@ -39,8 +23,7 @@ endif()
# Compile statically the extension
add_library(${PROJECT_NAME} OBJECT
${${PROJECT_NAME}_H}
${${PROJECT_NAME}_CPP}
src/Fgismo.F90 )
${${PROJECT_NAME}_CPP})

set_target_properties(${PROJECT_NAME} PROPERTIES
COMPILE_DEFINITIONS gismo_EXPORTS
Expand All @@ -61,10 +44,6 @@ install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/src/"
add_gismo_executable(${CMAKE_CURRENT_SOURCE_DIR}/examples/basis_cexample.c)
add_gismo_executable(${CMAKE_CURRENT_SOURCE_DIR}/examples/geometry_cexample.c)

if(CMAKE_Fortran_COMPILER AND NOT NOFORTRAN)
add_gismo_executable(${CMAKE_CURRENT_SOURCE_DIR}/examples/geometry_fexample.F90)
endif()

add_custom_target(C_plugins)

# Add submodules to Cgismo.h
Expand Down
Loading