File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -21,10 +21,9 @@ qt5_add_resources(RESOURCES ./resources/resources.qrc)
2121# We'll have to manually specify some files
2222set (CMAKE_AUTOMOC ON )
2323
24- # If we want to give the option to build a static library,
25- # leave off SHARED here and use BUILD_SHARED_LIBS to
26- # choose whether to add -D NODE_EDITOR_SHARED
27- add_library (nodes SHARED
24+ set (CMAKE_POSITION_INDEPENDENT_CODE ON )
25+
26+ set (CPP_SOURCE_FILES
2827 src/Connection.cpp
2928 src/ConnectionBlurEffect.cpp
3029 src/ConnectionGeometry.cpp
@@ -46,6 +45,13 @@ add_library(nodes SHARED
4645 src/NodeStyle.cpp
4746 src/Properties.cpp
4847 src/StyleCollection.cpp
48+ )
49+
50+ # If we want to give the option to build a static library,
51+ # leave off SHARED here and use BUILD_SHARED_LIBS to
52+ # choose whether to add -D NODE_EDITOR_SHARED
53+ add_library (nodes SHARED
54+ ${CPP_SOURCE_FILES}
4955 ${RESOURCES}
5056)
5157
You can’t perform that action at this time.
0 commit comments