Skip to content

Commit 4367ea4

Browse files
Removed shared library from nxconvert build
Fixes #372
1 parent eb83f03 commit 4367ea4

1 file changed

Lines changed: 5 additions & 18 deletions

File tree

applications/NXconvert/CMakeLists.txt

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -34,28 +34,15 @@ include_directories(../../third_party
3434
#-----------------------------------------------------------------------------
3535
# build the program binary and the required libraries
3636
#-----------------------------------------------------------------------------
37-
38-
add_executable (nxconvert nxconvert.cpp nxconvert_common.h )
39-
40-
set(NXCONVERT_LIB_SRC nxconvert_common.cpp nxconvert_common.h )
41-
42-
add_library (NXconvert_Static_Library STATIC ${NXCONVERT_LIB_SRC} )
43-
add_library (NXconvert_Shared_Library SHARED ${NXCONVERT_LIB_SRC} )
44-
45-
46-
target_link_libraries(NXconvert_Static_Library NeXus_CPP_Static_Library)
47-
target_link_libraries(NXconvert_Shared_Library NeXus_CPP_Shared_Library)
48-
target_link_libraries(nxconvert NXconvert_Shared_Library)
49-
50-
set_property(TARGET NXconvert_Shared_Library PROPERTY ENABLE_EXPORTS YES)
37+
set(SOURCES nxconvert.cpp nxconvert_common.h nxconvert_common.cpp)
38+
add_executable (nxconvert ${SOURCES})
39+
target_link_libraries(nxconvert NeXus_CPP_Shared_Library)
5140

5241
#-----------------------------------------------------------------------------
5342
# install the libraries, the program binary, and the man-page
5443
#-----------------------------------------------------------------------------
55-
install (TARGETS NXconvert_Static_Library NXconvert_Shared_Library nxconvert
56-
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT Runtime
57-
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT Runtime
58-
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}/nexus COMPONENT Development)
44+
install (TARGETS nxconvert
45+
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT Runtime)
5946

6047
install (FILES nxconvert.1
6148
DESTINATION ${CMAKE_INSTALL_MANDIR}/man1

0 commit comments

Comments
 (0)