ftnlf

Check-in [44d270d7e8]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Compile FX.Core plugin with CMake.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:44d270d7e85deb3d6446c395e97db5c32dc8536b
User & Date: vadim 2018-05-15 10:47:38
Context
2018-05-15
11:45
Separate tests. check-in: 2fa1469f6c user: vadim tags: trunk
10:47
Compile FX.Core plugin with CMake. check-in: 44d270d7e8 user: vadim tags: trunk
07:38
Generate DLL for Fortran eXtensions. check-in: b071967c92 user: vadim tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to CMakeLists.txt.

53
54
55
56
57
58
59








60
61
62
63
64
65
66
67
68
69







70
71
72
73
74
75
76
set (src_lib
	ftnlf.f90
	ftnlf_fxcore.f90
	luaf/luaf.f90
	luaf/luafe.f90
	${CMAKE_CURRENT_BINARY_DIR}/luaf_conf.fi
	)









set (src_test
	test.f90
	)

add_library(ftnlf STATIC ${src_lib})
set_target_properties(ftnlf PROPERTIES COMPILE_FLAGS "${FCFLAGS} ${FCFLAGS90}")
if(CMAKE_BUILD_TYPE STREQUAL "Release")
	set_target_properties(ftnlf PROPERTIES INTERPROCEDURAL_OPTIMIZATION 1)
endif()








add_executable(ftnlf_test ${src_test})
# Link static
target_link_libraries(ftnlf_test ftnlf ${LUA_STATIC_LIB} ${CMAKE_DL_LIBS})
# Link dynamic
# target_link_libraries(ftnlf ${LUA_LIBRARIES})
set_target_properties(ftnlf_test PROPERTIES COMPILE_FLAGS "${FCFLAGS} ${FCFLAGS90}")







>
>
>
>
>
>
>
>










>
>
>
>
>
>
>







53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
set (src_lib
	ftnlf.f90
	ftnlf_fxcore.f90
	luaf/luaf.f90
	luaf/luafe.f90
	${CMAKE_CURRENT_BINARY_DIR}/luaf_conf.fi
	)

set (src_shlib
	ftnlf_fxcore_shared.f90
	ftnlf_fxcore.f90
	luaf/luaf.f90
	luaf/luafe.f90
	${CMAKE_CURRENT_BINARY_DIR}/luaf_conf.fi
	)

set (src_test
	test.f90
	)

add_library(ftnlf STATIC ${src_lib})
set_target_properties(ftnlf PROPERTIES COMPILE_FLAGS "${FCFLAGS} ${FCFLAGS90}")
if(CMAKE_BUILD_TYPE STREQUAL "Release")
	set_target_properties(ftnlf PROPERTIES INTERPROCEDURAL_OPTIMIZATION 1)
endif()

add_library(FX SHARED ${src_shlib})
set_target_properties(FX PROPERTIES COMPILE_FLAGS "${FCFLAGS} ${FCFLAGS90}")
set_target_properties(FX PROPERTIES PREFIX "")
if(CMAKE_BUILD_TYPE STREQUAL "Release")
	set_target_properties(FX PROPERTIES INTERPROCEDURAL_OPTIMIZATION 1)
endif()

add_executable(ftnlf_test ${src_test})
# Link static
target_link_libraries(ftnlf_test ftnlf ${LUA_STATIC_LIB} ${CMAKE_DL_LIBS})
# Link dynamic
# target_link_libraries(ftnlf ${LUA_LIBRARIES})
set_target_properties(ftnlf_test PROPERTIES COMPILE_FLAGS "${FCFLAGS} ${FCFLAGS90}")