Commit fac36064 authored by Alexander Lohnau's avatar Alexander Lohnau 💬
Browse files

Fix build & tests on windows

parent dc21bcd5
......@@ -23,10 +23,6 @@ macro(knewstuff_unit_tests)
NAME_PREFIX "knewstuff-")
target_compile_definitions(${_testname} PUBLIC -DDATA_DIR="${CMAKE_CURRENT_BINARY_DIR}/data/")
target_link_libraries(${_testname} knewstuff_test_static)
set_property( TARGET ${_testname}
APPEND
PROPERTY COMPILE_DEFINITIONS KNEWSTUFF_STATIC_DEFINE KNEWSTUFFCORE_STATIC_DEFINE KNEWSTUFF_STATIC_DEFINE
)
endforeach()
endmacro()
......
if (WIN32)
set(DATA_DIR "/${CMAKE_CURRENT_BINARY_DIR}/data/")
else()
set(DATA_DIR "${CMAKE_CURRENT_BINARY_DIR}/data/")
endif()
configure_file(data/entry.xml.in data/entry.xml)
configure_file(data/provider.xml.in data/provider.xml)
configure_file(data/installcommand.knsrc.in data/installcommand.knsrc)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment