aboutsummaryrefslogtreecommitdiff
path: root/devtools/create_project/cmake.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'devtools/create_project/cmake.cpp')
-rw-r--r--devtools/create_project/cmake.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/devtools/create_project/cmake.cpp b/devtools/create_project/cmake.cpp
index 541e79efab..b6dca11c63 100644
--- a/devtools/create_project/cmake.cpp
+++ b/devtools/create_project/cmake.cpp
@@ -81,8 +81,8 @@ void CMakeProvider::createWorkspace(const BuildSetup &setup) {
workspace << "# Generate options for the engines\n";
writeEngineOptions(workspace);
- workspace << "include_directories(${" << setup.projectDescription << "_SOURCE_DIR} ${" << setup.projectDescription << "_SOURCE_DIR}/engines\n"
- "$ENV{"<<LIBS_DEFINE<<"}/include)\n\n";
+ workspace << "include_directories(${" << setup.projectDescription << "_SOURCE_DIR} ${" << setup.projectDescription << "_SOURCE_DIR}/engines "
+ "$ENV{"<<LIBS_DEFINE<<"}/include .)\n\n";
workspace << "# Libraries and features\n";
writeFeatureLibSearch(setup, workspace, "sdl");
@@ -214,7 +214,7 @@ void CMakeProvider::createProjectFile(const std::string &name, const std::string
}
}
project << "if (WIN32)\n";
- project << " target_sources(" << name << " PUBLIC dists/" << name << ".rc)\n";
+ project << " target_sources(" << name << " PUBLIC " << setup.filePrefix << "/dists/" << name << ".rc)\n";
project << " target_link_libraries(" << name << " winmm)\n";
project << "endif()\n";
project << "\n";