mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -04:00
CMake: Don't build pview/downloadertools when BUILD_PANDATOOL=OFF
This commit is contained in:
parent
e512ee5fa5
commit
6c5bf73141
@ -1,3 +1,9 @@
|
|||||||
|
if(NOT BUILD_PANDATOOL)
|
||||||
|
# It's safe to say, if the user doesn't want pandatool, they don't want these
|
||||||
|
# tools either.
|
||||||
|
return()
|
||||||
|
endif()
|
||||||
|
|
||||||
if(HAVE_OPENSSL)
|
if(HAVE_OPENSSL)
|
||||||
add_executable(apply_patch apply_patch.cxx)
|
add_executable(apply_patch apply_patch.cxx)
|
||||||
target_link_libraries(apply_patch panda)
|
target_link_libraries(apply_patch panda)
|
||||||
|
@ -1,26 +1,9 @@
|
|||||||
|
if(NOT BUILD_PANDATOOL)
|
||||||
|
# It's safe to say, if the user doesn't want pandatool, they don't want pview
|
||||||
|
# either.
|
||||||
|
return()
|
||||||
|
endif()
|
||||||
|
|
||||||
add_executable(pview pview.cxx)
|
add_executable(pview pview.cxx)
|
||||||
target_link_libraries(pview p3framework p3pystub)
|
target_link_libraries(pview p3framework p3pystub)
|
||||||
install(TARGETS pview EXPORT Tools COMPONENT Tools DESTINATION bin)
|
install(TARGETS pview EXPORT Tools COMPONENT Tools DESTINATION bin)
|
||||||
|
|
||||||
#begin test_bin_target
|
|
||||||
#define TARGET pgrid
|
|
||||||
|
|
||||||
#define SOURCES \
|
|
||||||
# pgrid.cxx
|
|
||||||
#define UNIX_SYS_LIBS m
|
|
||||||
#end test_bin_target
|
|
||||||
|
|
||||||
#begin test_bin_target
|
|
||||||
#define TARGET test_lod
|
|
||||||
#define SOURCES test_lod.cxx
|
|
||||||
#end test_bin_target
|
|
||||||
|
|
||||||
#begin test_bin_target
|
|
||||||
#define TARGET test_texmem
|
|
||||||
#define SOURCES test_texmem.cxx
|
|
||||||
#end test_bin_target
|
|
||||||
|
|
||||||
#begin test_bin_target
|
|
||||||
#define TARGET test_map
|
|
||||||
#define SOURCES test_map.cxx
|
|
||||||
#end test_bin_target
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user