Skip to content

Commit

Permalink
CMAKE: Organize the VS solution and add python path to debugger
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Jackson <[email protected]>
(cherry picked from commit 9d2eb6b)
  • Loading branch information
imikejackson committed Oct 18, 2024
1 parent 4672e8e commit ca9fb68
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,5 @@ add_custom_target(Copy_simplnx_Test_Data ALL
COMMENT "Copying ${simplnx_SOURCE_DIR}/test/Data data into Binary Directory"
COMMAND_EXPAND_LISTS
VERBATIM
)
)
set_target_properties(Copy_simplnx_Test_Data PROPERTIES FOLDER ZZ_COPY_FILES)
4 changes: 4 additions & 0 deletions wrapping/python/docs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ target_sources(generate_sphinx_docs
PRIVATE
"${CMAKE_CURRENT_BINARY_DIR}/plugin_source_dirs.hpp"
)
set_target_properties(generate_sphinx_docs PROPERTIES FOLDER simplnx_Python__Documentation)

set(SIMPLNX_SPHINX_DOCS_DIR "${simplnx_BINARY_DIR}/wrapping/python/docs")

Expand All @@ -53,6 +54,7 @@ add_custom_target(sphinx_copy_sources ALL
COMMAND ${CMAKE_COMMAND} -E copy_directory "${CMAKE_CURRENT_SOURCE_DIR}/source" "${SIMPLNX_SPHINX_DOCS_DIR}/source"
COMMENT "SIMPLNX Python Docs: Copying static doc files to build directory at ${SIMPLNX_SPHINX_DOCS_DIR}"
)
set_target_properties(sphinx_copy_sources PROPERTIES FOLDER simplnx_Python__Documentation)

#------------------------------------------------------------------------------
# Execute the sphinx rst plugin generation tool
Expand All @@ -62,6 +64,7 @@ add_custom_target(sphinx_generate_plugin_rst ALL
COMMAND "$<TARGET_FILE:generate_sphinx_docs>"
COMMENT "SIMPLNX Python Docs: Generated Plugin .rst docs file"
)
set_target_properties(sphinx_generate_plugin_rst PROPERTIES FOLDER simplnx_Python__Documentation)

#------------------------------------------------------------------------------
# Find the `sphinx-build` executable
Expand Down Expand Up @@ -103,3 +106,4 @@ else()
WORKING_DIRECTORY "${SIMPLNX_SPHINX_DOCS_DIR}"
)
endif()
set_target_properties(sphinx_docs_generation PROPERTIES FOLDER simplnx_Python__Documentation)

0 comments on commit ca9fb68

Please sign in to comment.