Fix cmake installation with conan #1233

Merged
madebr merged 2 commits from cmake-fixes into master 3 years ago

@ -18,6 +18,7 @@ endif()
set(${PROJECT}_AUDIO "OAL" CACHE STRING "Audio") set(${PROJECT}_AUDIO "OAL" CACHE STRING "Audio")
option(${PROJECT}_INSTALL "Enable installation of ${EXECUTABLE} + gamefiles" OFF)
option(${PROJECT}_WITH_OPUS "Build ${EXECUTABLE} with opus support" OFF) option(${PROJECT}_WITH_OPUS "Build ${EXECUTABLE} with opus support" OFF)
option(${PROJECT}_WITH_LIBSNDFILE "Build ${EXECUTABLE} with libsndfile (instead of internal decoder)" OFF) option(${PROJECT}_WITH_LIBSNDFILE "Build ${EXECUTABLE} with libsndfile (instead of internal decoder)" OFF)

@ -60,7 +60,7 @@ class Re3Conan(ConanFile):
self.requires("opusfile/0.12") self.requires("opusfile/0.12")
def export_sources(self): def export_sources(self):
for d in ("cmake", "src"): for d in ("cmake", "gamefiles", "src"):
shutil.copytree(src=d, dst=os.path.join(self.export_sources_folder, d)) shutil.copytree(src=d, dst=os.path.join(self.export_sources_folder, d))
self.copy("CMakeLists.txt") self.copy("CMakeLists.txt")