Add windows specific CMakeLists.txt for helpers
Change-Id: I2fe16e3f95f78bc678838d6c00f89de09a1a9c5f Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
This commit is contained in:
parent
4f9840246f
commit
aae31c3c1b
|
@ -56,24 +56,15 @@ set(IGDRCL_SRCS_tests_helpers
|
|||
${CMAKE_CURRENT_SOURCE_DIR}/variable_backup.h
|
||||
)
|
||||
|
||||
set(IGDRCL_SRCS_tests_helpers_windows
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/windows/kmd_notify_windows_tests.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/windows/gl_helper_tests.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/windows/mock_function.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/windows/mock_function.cpp
|
||||
)
|
||||
|
||||
set(IGDRCL_SRCS_tests_helpers_linux
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/linux/kmd_notify_linux_tests.cpp
|
||||
)
|
||||
|
||||
if(WIN32)
|
||||
target_sources(igdrcl_tests PRIVATE ${IGDRCL_SRCS_tests_helpers_windows})
|
||||
else()
|
||||
target_sources(igdrcl_tests PRIVATE ${IGDRCL_SRCS_tests_helpers_linux})
|
||||
endif()
|
||||
|
||||
target_sources(igdrcl_tests PRIVATE ${IGDRCL_SRCS_tests_helpers})
|
||||
set_property(GLOBAL PROPERTY IGDRCL_SRCS_tests_helpers_linux ${IGDRCL_SRCS_tests_helpers_linux})
|
||||
|
||||
if(UNIX)
|
||||
set(IGDRCL_SRCS_tests_helpers_linux
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/linux/kmd_notify_linux_tests.cpp
|
||||
)
|
||||
|
||||
target_sources(igdrcl_tests PRIVATE ${IGDRCL_SRCS_tests_helpers_linux})
|
||||
set_property(GLOBAL PROPERTY IGDRCL_SRCS_tests_helpers_linux ${IGDRCL_SRCS_tests_helpers_linux})
|
||||
endif()
|
||||
|
||||
add_subdirectories()
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
#
|
||||
# Copyright (C) 2019 Intel Corporation
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
|
||||
if(WIN32)
|
||||
set(IGDRCL_SRCS_tests_helpers_windows
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/kmd_notify_windows_tests.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/gl_helper_tests.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_function.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mock_function.cpp
|
||||
)
|
||||
|
||||
target_sources(igdrcl_tests PRIVATE ${IGDRCL_SRCS_tests_helpers_windows})
|
||||
add_subdirectories()
|
||||
endif()
|
Loading…
Reference in New Issue