Commit df66984 1 parent 045744a commit df66984 Copy full SHA for df66984
File tree 1 file changed +3
-7
lines changed
tools/plugingenerator/templates
1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -47,13 +47,9 @@ endif()
47
47
set(PROJECT_SOURCES ${ " ${SRC_LIST} " } ${ " ${HEADER_LIST} " } ${ " ${UI_LIST} " } )
48
48
find_package(Qt${ " ${QT_VERSION_MAJOR} " } COMPONENTS REQUIRED Widgets Core)
49
49
50
- if(${ " ${CMAKE_SYSTEM_NAME} " } MATCHES "Windows")
51
- set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${ " ${SCOPY_PLUGIN_BUILD_PATH} " } )
52
- elseif(${ " ${CMAKE_SYSTEM_NAME} " } MATCHES "Darwin")
53
- set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${ " ${CMAKE_BINARY_DIR} /Scopy.app/Contents/MacOS/plugins/plugins" } )
54
- else()
55
- set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${ " ${SCOPY_PLUGIN_BUILD_PATH} " } )
56
- endif()
50
+ if(NOT "${ " ${SCOPY_PLUGIN_BUILD_PATH} " } " STREQUAL "")
51
+ set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${ " ${SCOPY_PLUGIN_BUILD_PATH} " } )
52
+ endif()
57
53
58
54
qt_add_resources(PROJECT_RESOURCES res/resources.qrc)
59
55
add_library(${ " ${PROJECT_NAME} " } SHARED ${ " ${PROJECT_SOURCES} " } ${ " ${PROJECT_RESOURCES} " } )
You can’t perform that action at this time.
0 commit comments