Changeset: 9e338df7f5a5 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/9e338df7f5a5
Modified Files:
clients/CMakeLists.txt
clients/examples/C/CMakeLists.txt
clients/examples/perl/CMakeLists.txt
clients/examples/php/CMakeLists.txt
clients/odbc/CMakeLists.txt
clients/odbc/samples/CMakeLists.txt
clients/odbc/tests/CMakeLists.txt
ctest/tools/monetdbe/CMakeLists.txt
tools/mserver/CMakeLists.txt
Branch: Sep2022
Log Message:
Clean up TESTING option in cmake files.
Also don't compile/install shutdowntest if TESTING==OFF.
diffs (truncated from 530 to 300 lines):
diff --git a/clients/CMakeLists.txt b/clients/CMakeLists.txt
--- a/clients/CMakeLists.txt
+++ b/clients/CMakeLists.txt
@@ -9,7 +9,9 @@
add_subdirectory(mapiclient)
add_subdirectory(mapilib)
add_subdirectory(odbc)
-add_subdirectory(examples)
+if(TESTING)
+ add_subdirectory(examples)
+endif()
if(WIN32)
add_subdirectory(NT)
endif()
diff --git a/clients/examples/C/CMakeLists.txt
b/clients/examples/C/CMakeLists.txt
--- a/clients/examples/C/CMakeLists.txt
+++ b/clients/examples/C/CMakeLists.txt
@@ -6,104 +6,102 @@
# Copyright 1997 - July 2008 CWI, August 2008 - 2022 MonetDB B.V.
#]]
-if(TESTING)
- add_executable(sample0
- sample0.c)
+add_executable(sample0
+ sample0.c)
- target_link_libraries(sample0
- PRIVATE mapi)
+target_link_libraries(sample0
+ PRIVATE mapi)
- add_executable(sample1
- sample1.c)
+add_executable(sample1
+ sample1.c)
- target_link_libraries(sample1
- PRIVATE mapi)
+target_link_libraries(sample1
+ PRIVATE mapi)
- add_executable(sample4
- sample4.c)
+add_executable(sample4
+ sample4.c)
- target_link_libraries(sample4
- PRIVATE mapi)
+target_link_libraries(sample4
+ PRIVATE mapi)
- add_executable(smack00
- smack00.c)
+add_executable(smack00
+ smack00.c)
- target_link_libraries(smack00
- PRIVATE mapi)
+target_link_libraries(smack00
+ PRIVATE mapi)
- add_executable(smack01
- smack01.c)
+add_executable(smack01
+ smack01.c)
- target_link_libraries(smack01
- PRIVATE mapi)
+target_link_libraries(smack01
+ PRIVATE mapi)
- add_executable(streamcat
- streamcat.c)
+add_executable(streamcat
+ streamcat.c)
- target_link_libraries(streamcat
- PRIVATE
- monetdb_config_header
- stream)
+target_link_libraries(streamcat
+ PRIVATE
+ monetdb_config_header
+ stream)
- add_executable(testcondvar
- testcondvar.c)
+add_executable(testcondvar
+ testcondvar.c)
- target_link_libraries(testcondvar
- PRIVATE
- monetdb_config_header
- bat
- Threads::Threads
+target_link_libraries(testcondvar
+ PRIVATE
+ monetdb_config_header
+ bat
+ Threads::Threads
)
- add_executable(bincopydata
- bincopydata.c
- bincopydata.h
- bincopytemporaldata.c
- bincopyuuid.c
+add_executable(bincopydata
+ bincopydata.c
+ bincopydata.h
+ bincopytemporaldata.c
+ bincopyuuid.c
)
- target_link_libraries(bincopydata
- PRIVATE
- monetdb_config_header
- copybinary
+target_link_libraries(bincopydata
+ PRIVATE
+ monetdb_config_header
+ copybinary
)
- add_executable(bincopyloops
- bincopyloops.c
+add_executable(bincopyloops
+ bincopyloops.c
)
- target_link_libraries(bincopyloops
- PRIVATE
- monetdb_config_header
- copybinary
+target_link_libraries(bincopyloops
+ PRIVATE
+ monetdb_config_header
+ copybinary
)
- install(TARGETS
- sample0
- sample1
- sample4
- smack00
- smack01
- streamcat
- testcondvar
- bincopydata
- RUNTIME
- DESTINATION
- ${CMAKE_INSTALL_BINDIR}
- COMPONENT clienttest)
+install(TARGETS
+ sample0
+ sample1
+ sample4
+ smack00
+ smack01
+ streamcat
+ testcondvar
+ bincopydata
+ RUNTIME
+ DESTINATION
+ ${CMAKE_INSTALL_BINDIR}
+ COMPONENT clienttest)
- if(WIN32)
- install(FILES
- $<TARGET_PDB_FILE:sample0>
- $<TARGET_PDB_FILE:sample1>
- $<TARGET_PDB_FILE:sample4>
- $<TARGET_PDB_FILE:smack00>
- $<TARGET_PDB_FILE:smack01>
- $<TARGET_PDB_FILE:streamcat>
- $<TARGET_PDB_FILE:testcondvar>
- $<TARGET_PDB_FILE:bincopydata>
- $<TARGET_PDB_FILE:bincopyloops>
- DESTINATION ${CMAKE_INSTALL_BINDIR}
- OPTIONAL)
- endif()
+if(WIN32)
+ install(FILES
+ $<TARGET_PDB_FILE:sample0>
+ $<TARGET_PDB_FILE:sample1>
+ $<TARGET_PDB_FILE:sample4>
+ $<TARGET_PDB_FILE:smack00>
+ $<TARGET_PDB_FILE:smack01>
+ $<TARGET_PDB_FILE:streamcat>
+ $<TARGET_PDB_FILE:testcondvar>
+ $<TARGET_PDB_FILE:bincopydata>
+ $<TARGET_PDB_FILE:bincopyloops>
+ DESTINATION ${CMAKE_INSTALL_BINDIR}
+ OPTIONAL)
endif()
diff --git a/clients/examples/perl/CMakeLists.txt
b/clients/examples/perl/CMakeLists.txt
--- a/clients/examples/perl/CMakeLists.txt
+++ b/clients/examples/perl/CMakeLists.txt
@@ -6,16 +6,14 @@
# Copyright 1997 - July 2008 CWI, August 2008 - 2022 MonetDB B.V.
#]]
-if(TESTING)
- install(FILES
- sqlsample.pl
- PERMISSIONS ${PROGRAM_PERMISSIONS_DEFAULT}
- DESTINATION ${CMAKE_INSTALL_BINDIR}
- COMPONENT clienttest)
+install(FILES
+ sqlsample.pl
+ PERMISSIONS ${PROGRAM_PERMISSIONS_DEFAULT}
+ DESTINATION ${CMAKE_INSTALL_BINDIR}
+ COMPONENT clienttest)
- install(FILES
- malsample.pl
- PERMISSIONS ${PROGRAM_PERMISSIONS_DEFAULT}
- DESTINATION ${CMAKE_INSTALL_BINDIR}
- COMPONENT clienttest)
-endif()
+install(FILES
+ malsample.pl
+ PERMISSIONS ${PROGRAM_PERMISSIONS_DEFAULT}
+ DESTINATION ${CMAKE_INSTALL_BINDIR}
+ COMPONENT clienttest)
diff --git a/clients/examples/php/CMakeLists.txt
b/clients/examples/php/CMakeLists.txt
--- a/clients/examples/php/CMakeLists.txt
+++ b/clients/examples/php/CMakeLists.txt
@@ -6,10 +6,8 @@
# Copyright 1997 - July 2008 CWI, August 2008 - 2022 MonetDB B.V.
#]]
-if(TESTING)
- install(FILES
- sqlsample.php
- PERMISSIONS ${PROGRAM_PERMISSIONS_DEFAULT}
- DESTINATION ${CMAKE_INSTALL_BINDIR}
- COMPONENT clienttest)
-endif()
+install(FILES
+ sqlsample.php
+ PERMISSIONS ${PROGRAM_PERMISSIONS_DEFAULT}
+ DESTINATION ${CMAKE_INSTALL_BINDIR}
+ COMPONENT clienttest)
diff --git a/clients/odbc/CMakeLists.txt b/clients/odbc/CMakeLists.txt
--- a/clients/odbc/CMakeLists.txt
+++ b/clients/odbc/CMakeLists.txt
@@ -13,6 +13,8 @@ if(ODBC_FOUND)
add_subdirectory(setup)
endif()
add_subdirectory(driver)
- add_subdirectory(samples)
- add_subdirectory(tests)
+ if(TESTING)
+ add_subdirectory(samples)
+ add_subdirectory(tests)
+ endif()
endif()
diff --git a/clients/odbc/samples/CMakeLists.txt
b/clients/odbc/samples/CMakeLists.txt
--- a/clients/odbc/samples/CMakeLists.txt
+++ b/clients/odbc/samples/CMakeLists.txt
@@ -8,34 +8,32 @@
include_directories($<$<BOOL:${ODBC_FOUND}>:${ODBC_INCLUDE_DIRS}>)
-if(TESTING)
- add_executable(odbcsample1
- odbcsample1.c)
+add_executable(odbcsample1
+ odbcsample1.c)
+
+target_link_libraries(odbcsample1
+ PRIVATE
+ ODBC::ODBC)
- target_link_libraries(odbcsample1
- PRIVATE
- ODBC::ODBC)
+add_executable(arraytest
+ arraytest.c)
- add_executable(arraytest
- arraytest.c)
-
- target_link_libraries(arraytest
- PRIVATE
- ODBC::ODBC)
+target_link_libraries(arraytest
+ PRIVATE
+ ODBC::ODBC)
- install(TARGETS
- odbcsample1
- arraytest
- RUNTIME
- DESTINATION
- ${CMAKE_INSTALL_BINDIR}
- COMPONENT clienttest)
+install(TARGETS
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]