CMake: Fix pandatool/p3txafile build error on Windows

Need to define BUILDING_MISC for p3txafile so that it can
be properly exported.
This commit is contained in:
Sam Edwards 2018-11-01 15:57:47 -06:00
parent 7c42b75ac8
commit f7b59f6e55
1 changed files with 1 additions and 0 deletions

View File

@ -3,5 +3,6 @@ target_link_libraries(egg-palettize p3palettizer p3eggbase p3progbase)
install(TARGETS egg-palettize DESTINATION bin)
add_library(p3txafile txaFileFilter.cxx txaFileFilter.h txaFileFilter.I)
set_target_properties(p3txafile PROPERTIES DEFINE_SYMBOL BUILDING_MISC)
target_link_libraries(p3txafile p3palettizer)
install(TARGETS p3txafile DESTINATION lib RUNTIME DESTINATION bin)