diff --git a/base.jd/CMakeLists.txt b/base.jd/CMakeLists.txt index fc5d2f1..e80b10f 100644 --- a/base.jd/CMakeLists.txt +++ b/base.jd/CMakeLists.txt @@ -25,4 +25,4 @@ add_custom_target(basejd ALL DEPENDS ${basejdout} SOURCES ${SRCS}) -install(FILES ${basejdout} DESTINATION share) +install(FILES ${basejdout} DESTINATION "share/jade-engine") diff --git a/src/main.cpp b/src/main.cpp index 122cb3d..1cae66b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -289,6 +289,7 @@ int main(int argc, char* argv[]) std::vector baselibpaths; baselibpaths.push_back(programpath + "/base.jd"); baselibpaths.push_back(programpath + "/../base.jd"); + baselibpaths.push_back(programpath + "/../share/jade-engine/base.jd"); baselibpaths.push_back(programpath + "/../share/base.jd"); baselibpaths.push_back(basepath + "/base.jd"); baselibpaths.push_back("./base.jd");