mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
Under CMake, generate dtool_config.h into build/include/ instead of build/ and use build/include/ as the global include directory.
This commit is contained in:
parent
a842133002
commit
82854ac1e8
@ -18,7 +18,7 @@ include(PackageConfig) # Defines package_option AND target_use_packages
|
||||
include(Interrogate) # Defines target_interrogate AND add_python_module
|
||||
|
||||
# Add the include path for source and header files generated by CMake
|
||||
include_directories("${CMAKE_BINARY_DIR}")
|
||||
include_directories("${CMAKE_BINARY_DIR}/include")
|
||||
|
||||
# Configure Panda3D
|
||||
include(dtool/PandaVersion.cmake)
|
||||
|
@ -212,6 +212,6 @@ endif()
|
||||
message("See dtool_config.h for more details about the specified configuration.")
|
||||
|
||||
# Generate dtool_config.h
|
||||
configure_file(dtool_config.h.in "${PROJECT_BINARY_DIR}/dtool_config.h")
|
||||
include_directories("${PROJECT_BINARY_DIR}")
|
||||
configure_file(dtool_config.h.in "${PROJECT_BINARY_DIR}/include/dtool_config.h")
|
||||
include_directories("${PROJECT_BINARY_DIR}/include")
|
||||
#install(FILES "${PROJECT_BINARY_DIR}/dtool_config.h" DESTINATION include/panda3d)
|
||||
|
Loading…
x
Reference in New Issue
Block a user