mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-21 11:20:04 +02:00
warnings for virtual servers
This commit is contained in:
parent
758afad02c
commit
bd6529a64c
@ -1,3 +1,24 @@
|
|||||||
|
|
||||||
|
add_library(slsProjectCWarnings INTERFACE)
|
||||||
|
target_compile_options(slsProjectCWarnings INTERFACE
|
||||||
|
-Wall
|
||||||
|
-Wextra
|
||||||
|
-Wno-unused-parameter #Needs to be slowly mitigated
|
||||||
|
-Wdouble-promotion
|
||||||
|
-Wformat=2
|
||||||
|
-Wredundant-decls
|
||||||
|
# -Wconversion
|
||||||
|
-Wdouble-promotion
|
||||||
|
-Werror=return-type
|
||||||
|
)
|
||||||
|
|
||||||
|
# Install fake the library
|
||||||
|
install(TARGETS slsProjectCWarnings
|
||||||
|
EXPORT "${TARGETS_EXPORT_NAME}"
|
||||||
|
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||||
|
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||||
|
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
|
||||||
|
)
|
||||||
add_subdirectory(ctbDetectorServer)
|
add_subdirectory(ctbDetectorServer)
|
||||||
add_subdirectory(eigerDetectorServer)
|
add_subdirectory(eigerDetectorServer)
|
||||||
add_subdirectory(gotthardDetectorServer)
|
add_subdirectory(gotthardDetectorServer)
|
||||||
|
@ -32,7 +32,7 @@ target_compile_definitions(ctbDetectorServer_virtual
|
|||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(ctbDetectorServer_virtual
|
target_link_libraries(ctbDetectorServer_virtual
|
||||||
PUBLIC pthread rt
|
PUBLIC pthread rt slsProjectCWarnings
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(ctbDetectorServer_virtual PROPERTIES
|
set_target_properties(ctbDetectorServer_virtual PROPERTIES
|
||||||
|
@ -27,7 +27,7 @@ target_compile_definitions(eigerDetectorServerMaster_virtual
|
|||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(eigerDetectorServerMaster_virtual
|
target_link_libraries(eigerDetectorServerMaster_virtual
|
||||||
PUBLIC pthread rt
|
PUBLIC pthread rt slsProjectCWarnings
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(eigerDetectorServerMaster_virtual PROPERTIES
|
set_target_properties(eigerDetectorServerMaster_virtual PROPERTIES
|
||||||
|
@ -27,7 +27,7 @@ target_compile_definitions(gotthard2DetectorServer_virtual
|
|||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(gotthard2DetectorServer_virtual
|
target_link_libraries(gotthard2DetectorServer_virtual
|
||||||
PUBLIC pthread rt
|
PUBLIC pthread rt slsProjectCWarnings
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(gotthard2DetectorServer_virtual PROPERTIES
|
set_target_properties(gotthard2DetectorServer_virtual PROPERTIES
|
||||||
|
@ -25,7 +25,7 @@ target_compile_definitions(gotthardDetectorServer_virtual
|
|||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(gotthardDetectorServer_virtual
|
target_link_libraries(gotthardDetectorServer_virtual
|
||||||
PUBLIC pthread rt
|
PUBLIC pthread rt slsProjectCWarnings
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(gotthardDetectorServer_virtual PROPERTIES
|
set_target_properties(gotthardDetectorServer_virtual PROPERTIES
|
||||||
|
@ -28,7 +28,7 @@ target_compile_definitions(jungfrauDetectorServer_virtual
|
|||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(jungfrauDetectorServer_virtual
|
target_link_libraries(jungfrauDetectorServer_virtual
|
||||||
PUBLIC pthread rt slsProjectOptions slsProjectWarnings
|
PUBLIC pthread rt slsProjectCWarnings
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(jungfrauDetectorServer_virtual PROPERTIES
|
set_target_properties(jungfrauDetectorServer_virtual PROPERTIES
|
||||||
|
@ -30,7 +30,7 @@ target_compile_definitions(moenchDetectorServer_virtual
|
|||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(moenchDetectorServer_virtual
|
target_link_libraries(moenchDetectorServer_virtual
|
||||||
PUBLIC pthread rt
|
PUBLIC pthread rt slsProjectCWarnings
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(moenchDetectorServer_virtual PROPERTIES
|
set_target_properties(moenchDetectorServer_virtual PROPERTIES
|
||||||
|
@ -26,7 +26,7 @@ target_compile_definitions(mythen3DetectorServer_virtual
|
|||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(mythen3DetectorServer_virtual
|
target_link_libraries(mythen3DetectorServer_virtual
|
||||||
PUBLIC pthread rt
|
PUBLIC pthread rt slsProjectCWarnings
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(mythen3DetectorServer_virtual PROPERTIES
|
set_target_properties(mythen3DetectorServer_virtual PROPERTIES
|
||||||
|
Loading…
x
Reference in New Issue
Block a user