File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -68,19 +68,18 @@ set(SOURCES attr.cpp
6868 xml_util.cpp
6969 dynamic_retriever.cpp)
7070
71- add_executable (nxtranslate ${SOURCES} )
71+ add_executable (nxtranslate ${SOURCES} $<TARGET_OBJECTS :BinaryRetriever >
72+ $<TARGET_OBJECTS :TextCollist >
73+ $<TARGET_OBJECTS :TextPlain >
74+ $<TARGET_OBJECTS :TextXML >
75+ $<TARGET_OBJECTS :SNShistogram >
76+ $<TARGET_OBJECTS :FRM2 >
77+ $<TARGET_OBJECTS :Loopy >
78+ $<TARGET_OBJECTS :Spec >
79+ $<TARGET_OBJECTS :Edf >)
7280
7381target_link_libraries (nxtranslate
7482 NeXus_Shared_Library
75- BinaryRetriever
76- TextCollist
77- TextPlain
78- TextXML
79- SNShistogram
80- FRM2
81- Loopy
82- Spec
83- Edf
8483 ${LIBXML2_LIBRARIES} )
8584
8685
Original file line number Diff line number Diff line change 2828
2929include_directories ("${CMAKE_CURRENT_SOURCE_DIR} " )
3030
31- add_library (FRM2 frm2_retriever.cpp )
32-
33- install (TARGETS FRM2 DESTINATION ${CMAKE_INSTALL_LIBDIR}
34- COMPONENT Runtime )
31+ add_library (FRM2 OBJECT frm2_retriever.cpp )
Original file line number Diff line number Diff line change 2828
2929include_directories ("${CMAKE_CURRENT_SOURCE_DIR} /.." )
3030
31- add_library (BinaryRetriever BinaryRetriever.cpp )
31+ add_library (BinaryRetriever OBJECT BinaryRetriever.cpp )
Original file line number Diff line number Diff line change 2828
2929include_directories ("${CMAKE_CURRENT_SOURCE_DIR} " )
3030
31- add_library (Edf edf_reader.cpp edf_retriever.cpp )
31+ add_library (Edf OBJECT edf_reader.cpp edf_retriever.cpp )
3232
33- install (TARGETS Edf DESTINATION ${CMAKE_INSTALL_LIBDIR}
34- COMPONENT Runtime )
Original file line number Diff line number Diff line change 2828
2929include_directories ("${CMAKE_CURRENT_SOURCE_DIR} " )
3030
31- add_library (Loopy retriever.cpp )
32-
33- install (TARGETS Loopy DESTINATION ${CMAKE_INSTALL_LIBDIR}
34- COMPONENT Runtime )
31+ add_library (Loopy OBJECT retriever.cpp )
Original file line number Diff line number Diff line change 2828
2929include_directories ("${CMAKE_CURRENT_SOURCE_DIR} " )
3030
31- add_library (SNShistogram string_location_format.cpp
31+ add_library (SNShistogram OBJECT string_location_format.cpp
3232 SNS_retriever.cpp )
33-
34- install (TARGETS SNShistogram DESTINATION ${CMAKE_INSTALL_LIBDIR}
35- COMPONENT Runtime )
Original file line number Diff line number Diff line change 2828
2929include_directories ("${CMAKE_CURRENT_SOURCE_DIR} " )
3030
31- add_library (Spec SPEClib.cpp spec_retriever.cpp )
32-
33- install (TARGETS Spec DESTINATION ${CMAKE_INSTALL_LIBDIR}
34- COMPONENT Runtime )
31+ add_library (Spec OBJECT SPEClib.cpp spec_retriever.cpp )
Original file line number Diff line number Diff line change 2828
2929include_directories ("${CMAKE_CURRENT_SOURCE_DIR} " )
3030
31- add_library (TextCollist collist_retriever.cpp )
32-
33- install (TARGETS TextCollist DESTINATION ${CMAKE_INSTALL_LIBDIR}
34- COMPONENT Runtime )
31+ add_library (TextCollist OBJECT collist_retriever.cpp )
Original file line number Diff line number Diff line change 2828
2929include_directories ("${CMAKE_CURRENT_SOURCE_DIR} " )
3030
31- add_library (TextPlain retriever.cpp )
32-
33- install (TARGETS TextPlain DESTINATION ${CMAKE_INSTALL_LIBDIR}
34- COMPONENT Runtime )
31+ add_library (TextPlain OBJECT retriever.cpp )
Original file line number Diff line number Diff line change 2828
2929include_directories ("${CMAKE_CURRENT_SOURCE_DIR} " ${LIBXML2_INCLUDE_DIR} )
3030
31- add_library (TextXML xml_retriever.cpp
31+ add_library (TextXML OBJECT xml_retriever.cpp
3232 xml_retriever_dom.cpp
3333 void_copy.cpp )
34-
35- install (TARGETS TextXML DESTINATION ${CMAKE_INSTALL_LIBDIR}
36- COMPONENT Runtime )
You can’t perform that action at this time.
0 commit comments