Move generated directory to build directory
StepMania generates some files during build but it's a bit unusual to generate them in source directory instead of build directory. Move them to build directory and remove src/generated from .gitignore.
This commit is contained in:
@@ -3,10 +3,10 @@ list(APPEND SMDATA_GLOBAL_FILES_SRC
|
||||
"global.cpp"
|
||||
"SpecialFiles.cpp"
|
||||
"StepMania.cpp" # TODO: Refactor into separate main project.
|
||||
"${SM_SRC_DIR}/generated/verstub.cpp")
|
||||
"${SM_GENERATED_SRC_DIR}/verstub.cpp")
|
||||
|
||||
list(APPEND SMDATA_GLOBAL_FILES_HPP
|
||||
"generated/config.hpp"
|
||||
"${SM_GENERATED_SRC_DIR}/config.hpp"
|
||||
"GameLoop.h"
|
||||
"global.h"
|
||||
"ProductInfo.h" # TODO: Have this be auto-generated.
|
||||
|
||||
@@ -13,7 +13,7 @@ set_property(TARGET "LoadingWindowGtk" PROPERTY CXX_STANDARD_REQUIRED ON)
|
||||
set_property(TARGET "LoadingWindowGtk" PROPERTY CXX_EXTENSIONS ON)
|
||||
|
||||
target_include_directories("LoadingWindowGtk" PRIVATE "${SM_SRC_DIR}"
|
||||
"${SM_SRC_DIR}/generated"
|
||||
"${SM_GENERATED_SRC_DIR}"
|
||||
"${SM_SRC_DIR}/arch/LoadingWindow"
|
||||
"${GTK3_INCLUDE_DIRS}")
|
||||
|
||||
|
||||
+1
-3
@@ -1,5 +1,3 @@
|
||||
file(MAKE_DIRECTORY "${SM_SRC_DIR}/generated")
|
||||
|
||||
if(MSVC)
|
||||
# Add the mapconv program of the past to allow for debugging information.
|
||||
include("CMakeProject-mapconv.cmake")
|
||||
@@ -448,7 +446,7 @@ endif()
|
||||
target_link_libraries("${SM_EXE_NAME}" ${SMDATA_LINK_LIB})
|
||||
|
||||
list(APPEND SM_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
"${SM_SRC_DIR}/generated")
|
||||
"${SM_GENERATED_SRC_DIR}")
|
||||
|
||||
if(APPLE)
|
||||
list(APPEND SM_INCLUDE_DIRS "archutils/Unix")
|
||||
|
||||
@@ -44,7 +44,7 @@ target_link_libraries("TextureFontGenerator" ${TEXTURE_LINK_LIB})
|
||||
list(APPEND TEXTURE_INCLUDE_DIRS
|
||||
"${TEXTURE_DIR}"
|
||||
"${TEXTURE_DIR}/res"
|
||||
"${SM_SRC_DIR}/generated")
|
||||
"${SM_GENERATED_SRC_DIR}")
|
||||
|
||||
target_include_directories("TextureFontGenerator"
|
||||
PUBLIC ${TEXTURE_INCLUDE_DIRS})
|
||||
|
||||
Reference in New Issue
Block a user