CMake: use wx prefix in library names

Rename all library targets to start with wx. This way it does not use generic
names like base or core that could interfere with other libraries that add
include the wxWidgets project.
This commit is contained in:
Maarten Bent
2020-05-17 19:41:44 +02:00
parent 0c2d05f52f
commit 0f806ad96d
26 changed files with 198 additions and 184 deletions

View File

@@ -56,7 +56,7 @@ function(wx_add_demo name)
if(wxBUILD_SHARED)
target_compile_definitions(${DEMO_NAME} PRIVATE WXUSINGDLL)
endif()
wx_exe_link_libraries(${DEMO_NAME} core ${DEMO_LIBRARIES})
wx_exe_link_libraries(${DEMO_NAME} wxcore ${DEMO_LIBRARIES})
wx_set_common_target_properties(${DEMO_NAME})
set_target_properties(${DEMO_NAME} PROPERTIES FOLDER "Demos")
set_target_properties(${DEMO_NAME} PROPERTIES
@@ -92,7 +92,7 @@ wx_add_demo(forty
DATA
about.htm
LIBRARIES
html xml
wxhtml wxxml
)
wx_add_demo(fractal
@@ -118,7 +118,7 @@ wx_add_demo(poem
DATA
wxpoem.txt wxpoem.dat wxpoem.idx
LIBRARIES
html
wxhtml
NAME
wxpoem
)