# Enable beta Vulkan extensions
target_compile_definitions(loader_common_options INTERFACE VK_ENABLE_BETA_EXTENSIONS)
+target_compile_features(loader_common_options INTERFACE c_std_99)
+target_compile_features(loader_common_options INTERFACE cxx_std_11)
+
if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang")
target_compile_options(loader_common_options INTERFACE -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -fno-strict-aliasing -fno-builtin-memcmp)
# /w34057: Warn about different indirection types.
# /w34245: Warn about signed/unsigned mismatch.
# /guard:cf: Enable control flow guard
- # /permissive-: Use standard conformance mode
- target_compile_options(loader_common_options INTERFACE /WX /GR- /w34456 /w34701 /w34703 /w34057 /w34245 /guard:cf /permissive-)
+ target_compile_options(loader_common_options INTERFACE /WX /GR- /w34456 /w34701 /w34703 /w34057 /w34245 /guard:cf)
# Enable control flow guard
list(APPEND CMAKE_SHARED_LINKER_FLAGS /guard:cf)
# common attributes of the vulkan library
target_link_libraries(vulkan loader_specific_options)
-set_target_properties(vulkan PROPERTIES
- C_STANDARD 99
- C_STANDARD_REQUIRED YES
- C_EXTENSIONS NO
-)
-set_target_properties(vulkan PROPERTIES
- CXX_STANDARD 11
- CXX_STANDARD_REQUIRED YES
- CXX_EXTENSIONS NO
-)
# Generate pkg-config file.
include(FindPkgConfig QUIET)
# limitations under the License.
# ~~~
-add_library(testing_framework_util STATIC test_util.cpp test_util.h)
+add_library(testing_framework_util STATIC test_util.cpp)
target_link_libraries(testing_framework_util PUBLIC Vulkan::Headers loader_common_options platform_wsi_defines)
+
if(UNIX OR APPLE)
target_link_libraries(testing_framework_util PUBLIC ${CMAKE_DL_LIBS})
endif()