CMake: Update dcparse(r) as latter now has EXPCL

This commit is contained in:
Sam Edwards 2018-08-16 22:28:06 -06:00
parent aea0ac4533
commit d94f27bedd
2 changed files with 6 additions and 12 deletions

View File

@ -1,10 +1,4 @@
if(WIN32)
# We can't build dcparse on Windows, because the dcparser symbols aren't
# properly exported from p3direct.dll.
return()
endif()
add_executable(dcparse dcparse.cxx)
target_compile_definitions(dcparse PUBLIC WITHIN_PANDA)
target_link_libraries(dcparse p3direct)
install(TARGETS dcparse DESTINATION bin)
add_executable(p3dcparse dcparse.cxx)
target_compile_definitions(p3dcparse PUBLIC WITHIN_PANDA)
target_link_libraries(p3dcparse p3direct)
install(TARGETS p3dcparse DESTINATION bin)

View File

@ -46,8 +46,8 @@ set(P3DCPARSER_PARSER_SOURCES
dcLexer.cxx)
composite_sources(p3dcparser P3DCPARSER_SOURCES)
add_component_library(p3dcparser NOINIT ${P3DCPARSER_HEADERS} ${P3DCPARSER_SOURCES}
${P3DCPARSER_PARSER_SOURCES})
add_component_library(p3dcparser NOINIT SYMBOL BUILDING_DIRECT_DCPARSER
${P3DCPARSER_HEADERS} ${P3DCPARSER_SOURCES} ${P3DCPARSER_PARSER_SOURCES})
target_compile_definitions(p3dcparser PUBLIC WITHIN_PANDA)
target_link_libraries(p3dcparser p3directbase panda)
target_use_packages(p3dcparser PYTHON)