Commit 92fd2361 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

cmake: simplified versioning of the shared library

parent fd79794b
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -7,13 +7,13 @@ set( tnl_heat_equation_SOURCES
IF( BUILD_CUDA )
   CUDA_ADD_EXECUTABLE(tnl-heat-equation${debugExt} tnl-heat-equation.cu)
   CUDA_ADD_EXECUTABLE(tnl-heat-equation-eoc-test${debugExt} tnl-heat-equation-eoc.cu)
   target_link_libraries (tnl-heat-equation${debugExt} tnl${debugExt}-${tnlVersion}  ${CUSPARSE_LIBRARY} )
   target_link_libraries (tnl-heat-equation-eoc-test${debugExt} tnl${debugExt}-${tnlVersion}  ${CUSPARSE_LIBRARY} )
   target_link_libraries (tnl-heat-equation${debugExt} tnl${debugExt}  ${CUSPARSE_LIBRARY} )
   target_link_libraries (tnl-heat-equation-eoc-test${debugExt} tnl${debugExt}  ${CUSPARSE_LIBRARY} )
ELSE(  BUILD_CUDA )               
   ADD_EXECUTABLE(tnl-heat-equation${debugExt} tnl-heat-equation.cpp)     
   ADD_EXECUTABLE(tnl-heat-equation-eoc-test${debugExt} tnl-heat-equation-eoc.cpp)   
   target_link_libraries (tnl-heat-equation${debugExt} tnl${debugExt}-${tnlVersion})
   target_link_libraries (tnl-heat-equation-eoc-test${debugExt} tnl${debugExt}-${tnlVersion} )
   target_link_libraries (tnl-heat-equation${debugExt} tnl${debugExt})
   target_link_libraries (tnl-heat-equation-eoc-test${debugExt} tnl${debugExt} )
   TARGET_COMPILE_DEFINITIONS( tnl-heat-equation${debugExt} PUBLIC ${MIC_CXX_FLAGS} )
ENDIF( BUILD_CUDA )

+2 −2
Original line number Diff line number Diff line
@@ -7,10 +7,10 @@ set( tnl_inviscid_flow_SOURCES
               
IF( BUILD_CUDA )
   CUDA_ADD_EXECUTABLE(tnl-euler${debugExt} euler.cu)
   target_link_libraries (tnl-euler${debugExt} tnl${debugExt}-${tnlVersion}  ${CUSPARSE_LIBRARY} )
   target_link_libraries (tnl-euler${debugExt} tnl${debugExt}  ${CUSPARSE_LIBRARY} )
ELSE(  BUILD_CUDA )               
   ADD_EXECUTABLE(tnl-euler${debugExt} euler.cpp)     
   target_link_libraries (tnl-euler${debugExt} tnl${debugExt}-${tnlVersion} )
   target_link_libraries (tnl-euler${debugExt} tnl${debugExt} )
ENDIF( BUILD_CUDA )


+4 −4
Original line number Diff line number Diff line
@@ -7,13 +7,13 @@ set( tnl_mean_curvature_flow_SOURCES
IF( BUILD_CUDA )
   CUDA_ADD_EXECUTABLE(tnl-mean-curvature-flow${debugExt} tnl-mean-curvature-flow.cu)
   CUDA_ADD_EXECUTABLE(tnl-mean-curvature-flow-eoc-test${debugExt} tnl-mean-curvature-flow-eoc.cu)
   target_link_libraries (tnl-mean-curvature-flow${debugExt} tnl${debugExt}-${tnlVersion}  ${CUSPARSE_LIBRARY} )
   target_link_libraries (tnl-mean-curvature-flow-eoc-test${debugExt} tnl${debugExt}-${tnlVersion}  ${CUSPARSE_LIBRARY} )
   target_link_libraries (tnl-mean-curvature-flow${debugExt} tnl${debugExt}  ${CUSPARSE_LIBRARY} )
   target_link_libraries (tnl-mean-curvature-flow-eoc-test${debugExt} tnl${debugExt}  ${CUSPARSE_LIBRARY} )
ELSE(  BUILD_CUDA )               
   ADD_EXECUTABLE(tnl-mean-curvature-flow${debugExt} tnl-mean-curvature-flow.cpp)     
   ADD_EXECUTABLE(tnl-mean-curvature-flow-eoc-test${debugExt} tnl-mean-curvature-flow-eoc.cpp)   
   target_link_libraries (tnl-mean-curvature-flow${debugExt} tnl${debugExt}-${tnlVersion} )
   target_link_libraries (tnl-mean-curvature-flow-eoc-test${debugExt} tnl${debugExt}-${tnlVersion} )
   target_link_libraries (tnl-mean-curvature-flow${debugExt} tnl${debugExt} )
   target_link_libraries (tnl-mean-curvature-flow-eoc-test${debugExt} tnl${debugExt} )
ENDIF( BUILD_CUDA )

INSTALL( TARGETS tnl-mean-curvature-flow${debugExt}
+1 −1
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@ IF( BUILD_CUDA )
ELSE(  BUILD_CUDA )                
	ADD_EXECUTABLE(narrow-band${debugExt} main.cpp)
ENDIF( BUILD_CUDA )
target_link_libraries (narrow-band${debugExt} tnl${debugExt}-${tnlVersion} )
target_link_libraries (narrow-band${debugExt} tnl${debugExt} )


INSTALL( TARGETS narrow-band${debugExt}
+4 −4
Original line number Diff line number Diff line
@@ -11,15 +11,15 @@ set( tnl_transport_equation_HEADERS
               
IF( BUILD_CUDA )
   CUDA_ADD_EXECUTABLE( tnl-transport-equation${debugExt} tnl-transport-equation.cu)   
   target_link_libraries( tnl-transport-equation${debugExt} tnl${debugExt}-${tnlVersion}  ${CUSPARSE_LIBRARY} )
   target_link_libraries( tnl-transport-equation${debugExt} tnl${debugExt}  ${CUSPARSE_LIBRARY} )
   CUDA_ADD_EXECUTABLE( tnl-transport-equation-eoc${debugExt} tnl-transport-equation-eoc.cu)   
   target_link_libraries( tnl-transport-equation-eoc${debugExt} tnl${debugExt}-${tnlVersion}  ${CUSPARSE_LIBRARY} )
   target_link_libraries( tnl-transport-equation-eoc${debugExt} tnl${debugExt}  ${CUSPARSE_LIBRARY} )

ELSE(  BUILD_CUDA )               
   ADD_EXECUTABLE( tnl-transport-equation${debugExt} tnl-transport-equation.cpp)     
   target_link_libraries( tnl-transport-equation${debugExt} tnl${debugExt}-${tnlVersion} )
   target_link_libraries( tnl-transport-equation${debugExt} tnl${debugExt} )
   ADD_EXECUTABLE( tnl-transport-equation-eoc${debugExt} tnl-transport-equation-eoc.cpp)     
   target_link_libraries( tnl-transport-equation-eoc${debugExt} tnl${debugExt}-${tnlVersion} )
   target_link_libraries( tnl-transport-equation-eoc${debugExt} tnl${debugExt} )
ENDIF( BUILD_CUDA )


Loading