mirror of
https://github.com/crystalidea/qt-build-tools.git
synced 2025-07-02 23:45:23 +08:00
cmake 3.16.2 is required
This commit is contained in:
@ -0,0 +1,7 @@
|
||||
cmake_minimum_required(VERSION ${CMAKE_VERSION})
|
||||
project(IntelFortranImplicit Fortran)
|
||||
add_custom_command(
|
||||
OUTPUT output.cmake
|
||||
COMMAND ${CMAKE_COMMAND} -P ${IntelFortranImplicit_SOURCE_DIR}/detect.cmake
|
||||
)
|
||||
add_library(FortranLib hello.f output.cmake)
|
@ -0,0 +1,9 @@
|
||||
# look at each path and try to find ifconsol.lib
|
||||
set(LIB "$ENV{LIB}")
|
||||
foreach(dir ${LIB})
|
||||
file(TO_CMAKE_PATH "${dir}" dir)
|
||||
if(EXISTS "${dir}/ifconsol.lib")
|
||||
file(WRITE output.cmake "list(APPEND implicit_dirs \"${dir}\")\n")
|
||||
break()
|
||||
endif()
|
||||
endforeach()
|
Reference in New Issue
Block a user