2019-05-12 22:20:56 +02:00
|
|
|
# TODO: unittest should be fixed
|
|
|
|
|
if(APPLE)
|
|
|
|
|
set(plugin_output_name "libtest_debug")
|
|
|
|
|
elseif(UNIX)
|
2021-01-27 11:51:36 +01:00
|
|
|
set(plugin_output_name "libtest")
|
2019-05-12 22:20:56 +02:00
|
|
|
else()
|
2022-06-30 15:26:47 +02:00
|
|
|
set(plugin_output_name "test$<$<CONFIG:Debug>:d>")
|
2019-05-12 22:20:56 +02:00
|
|
|
endif()
|
|
|
|
|
|
2019-06-26 17:51:06 +02:00
|
|
|
file(RELATIVE_PATH TEST_PLUGIN_PATH ${QtCreator_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
|
|
2019-05-12 22:20:56 +02:00
|
|
|
add_qtc_plugin(testplugin
|
|
|
|
|
DEPENDS ExtensionSystem
|
|
|
|
|
DEFINES MYPLUGIN_LIBRARY
|
|
|
|
|
SOURCES
|
|
|
|
|
testplugin.cpp testplugin.h
|
2019-06-26 17:51:06 +02:00
|
|
|
PLUGIN_PATH "${TEST_PLUGIN_PATH}"
|
2019-06-03 15:07:27 +02:00
|
|
|
SKIP_INSTALL
|
2019-08-07 10:46:06 +02:00
|
|
|
INTERNAL_ONLY
|
2019-05-12 22:20:56 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
# The empty string gets removed if I put it above
|
2020-10-20 15:40:56 +02:00
|
|
|
if (TARGET testplugin)
|
2021-01-27 11:51:36 +01:00
|
|
|
set_target_properties(testplugin PROPERTIES PREFIX ""
|
|
|
|
|
OUTPUT_NAME "${plugin_output_name}")
|
2020-10-20 15:40:56 +02:00
|
|
|
endif()
|