mumps depends on libgtmshr
ttt and msg depend on their cmake files add gtmroutines to ttt and msg cmake files make libgtmshr and libgtmcrypt MODULES from SHARED
This commit is contained in:
parent
e472111dae
commit
a6ecf365b8
|
@ -229,13 +229,14 @@ target_link_libraries(ftok libmumps libstub)
|
||||||
set_property(TARGET ${with_export} PROPERTY LINK_FLAGS
|
set_property(TARGET ${with_export} PROPERTY LINK_FLAGS
|
||||||
"-Wl,-u,gtm_filename_to_id -Wl,-u,gtm_zstatus -Wl,--version-script,\"${GTM_SOURCE_DIR}/gtmexe_symbols.export\"")
|
"-Wl,-u,gtm_filename_to_id -Wl,-u,gtm_zstatus -Wl,--version-script,\"${GTM_SOURCE_DIR}/gtmexe_symbols.export\"")
|
||||||
|
|
||||||
add_library(libgtmshr SHARED ${libgtmshr_SOURCES})
|
add_library(libgtmshr MODULE ${libgtmshr_SOURCES})
|
||||||
set_property(TARGET libgtmshr PROPERTY OUTPUT_NAME gtmshr)
|
set_property(TARGET libgtmshr PROPERTY OUTPUT_NAME gtmshr)
|
||||||
target_link_libraries(libgtmshr libmumps libgnpclient libcmisockettcp)
|
target_link_libraries(libgtmshr libmumps libgnpclient libcmisockettcp)
|
||||||
set_property(TARGET libgtmshr PROPERTY LINK_FLAGS
|
set_property(TARGET libgtmshr PROPERTY LINK_FLAGS
|
||||||
"-Wl,-u,gtm_ci -Wl,-u,gtm_filename_to_id -Wl,--version-script,\"${GTM_SOURCE_DIR}/gtmshr_symbols.export\"")
|
"-Wl,-u,gtm_ci -Wl,-u,gtm_filename_to_id -Wl,--version-script,\"${GTM_SOURCE_DIR}/gtmshr_symbols.export\"")
|
||||||
|
add_dependencies(mumps libgtmshr)
|
||||||
|
|
||||||
add_library(libgtmcrypt SHARED ${libgtmcrypt_SOURCES})
|
add_library(libgtmcrypt MODULE ${libgtmcrypt_SOURCES})
|
||||||
set_target_properties(libgtmcrypt PROPERTIES
|
set_target_properties(libgtmcrypt PROPERTIES
|
||||||
OUTPUT_NAME gtmcrypt
|
OUTPUT_NAME gtmcrypt
|
||||||
COMPILE_DEFINITIONS USE_GCRYPT
|
COMPILE_DEFINITIONS USE_GCRYPT
|
||||||
|
@ -473,7 +474,7 @@ add_custom_command(
|
||||||
-D input=${GTM_SOURCE_DIR}/sr_unix/ttt.txt
|
-D input=${GTM_SOURCE_DIR}/sr_unix/ttt.txt
|
||||||
-P ${GTM_SOURCE_DIR}/sr_port/tttgen.cmake
|
-P ${GTM_SOURCE_DIR}/sr_port/tttgen.cmake
|
||||||
)
|
)
|
||||||
list(APPEND gen_bootstrap_files gen/ttt.c)
|
list(APPEND gen_bootstrap_files gen/ttt.c sr_port/tttgen.cmake)
|
||||||
|
|
||||||
foreach(msg
|
foreach(msg
|
||||||
sr_port/cmerrors.msg
|
sr_port/cmerrors.msg
|
||||||
|
@ -484,7 +485,7 @@ foreach(msg
|
||||||
get_filename_component(name ${msg} NAME_WE)
|
get_filename_component(name ${msg} NAME_WE)
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
OUTPUT gen/${name}_ctl.c
|
OUTPUT gen/${name}_ctl.c
|
||||||
DEPENDS gen/msg.m ${GTM_SOURCE_DIR}/${msg}
|
DEPENDS gen/msg.m ${GTM_SOURCE_DIR}/${msg} sr_port/msg.cmake
|
||||||
WORKING_DIRECTORY ${GTM_BINARY_DIR}/gen
|
WORKING_DIRECTORY ${GTM_BINARY_DIR}/gen
|
||||||
COMMAND ${CMAKE_COMMAND}
|
COMMAND ${CMAKE_COMMAND}
|
||||||
-D gtm_dist=${GTM_BINARY_DIR}
|
-D gtm_dist=${GTM_BINARY_DIR}
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
set(ENV{gtm_dist} "${gtm_dist}")
|
set(ENV{gtm_dist} "${gtm_dist}")
|
||||||
|
set(ENV{gtmroutines} ".")
|
||||||
execute_process(
|
execute_process(
|
||||||
COMMAND ${mumps} -run msg ${input} unix
|
COMMAND ${mumps} -run msg ${input} unix
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
set(ENV{gtm_dist} "${gtm_dist}")
|
set(ENV{gtm_dist} "${gtm_dist}")
|
||||||
|
set(ENV{gtmroutines} ".")
|
||||||
execute_process(
|
execute_process(
|
||||||
COMMAND ${mumps} -run tttgen ${input} ${sr_port}/opcode_def.h ${sr_port}/vxi.h
|
COMMAND ${mumps} -run tttgen ${input} ${sr_port}/opcode_def.h ${sr_port}/vxi.h
|
||||||
OUTPUT_FILE ttt.log
|
OUTPUT_FILE ttt.log
|
||||||
|
|
Loading…
Reference in New Issue