diff options
author | Andrew Okin <forkk@forkk.net> | 2013-02-21 14:52:23 -0600 |
---|---|---|
committer | Andrew Okin <forkk@forkk.net> | 2013-02-21 14:52:23 -0600 |
commit | 9118de4b7c8b6bbd9c4e7267836dd3e9690886d4 (patch) | |
tree | 5787ab165501dfabd76f1c0bccbe17082a435a6b | |
parent | 2e0f6091b49f7bec67b33a09667f0d9b798c3a76 (diff) | |
download | MultiMC-9118de4b7c8b6bbd9c4e7267836dd3e9690886d4.tar MultiMC-9118de4b7c8b6bbd9c4e7267836dd3e9690886d4.tar.gz MultiMC-9118de4b7c8b6bbd9c4e7267836dd3e9690886d4.tar.lz MultiMC-9118de4b7c8b6bbd9c4e7267836dd3e9690886d4.tar.xz MultiMC-9118de4b7c8b6bbd9c4e7267836dd3e9690886d4.zip |
Fixed install on Linux
-rw-r--r-- | CMakeLists.txt | 10 | ||||
-rw-r--r-- | plugins/stdinstance/CMakeLists.txt | 4 |
2 files changed, 9 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index c2fcc55f..bb8d7671 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,6 +8,10 @@ SET(CMAKE_INCLUDE_CURRENT_DIR ON) # Output all executables and shared libs in the main build folder, not in subfolders. SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}) +IF(UNIX) + SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}) +ENDIF() + ######## Set compiler flags ######## IF(APPLE) # assume clang 4.1.0+, add C++0x/C++11 stuff @@ -331,11 +335,7 @@ INSTALL(CODE " # Dirs to look for dependencies. -SET(DIRS "${QT_LIBRARY_DIRS} -${CMAKE_BINARY_DIR}/libutil -${CMAKE_BINARY_DIR}/libsettings -${CMAKE_BINARY_DIR}/libinstance") -message(STATUS "${DIRS}") +SET(DIRS "${QT_LIBRARY_DIRS}") INSTALL(CODE " file(GLOB_RECURSE QTPLUGINS diff --git a/plugins/stdinstance/CMakeLists.txt b/plugins/stdinstance/CMakeLists.txt index 0bb466ec..b25b93b2 100644 --- a/plugins/stdinstance/CMakeLists.txt +++ b/plugins/stdinstance/CMakeLists.txt @@ -37,6 +37,10 @@ add_library(stdinstance SHARED ${STDINST_SOURCES} ${STDINST_HEADERS}) set_target_properties(stdinstance PROPERTIES PREFIX "") set_target_properties(stdinstance PROPERTIES RUNTIME_OUTPUT_DIRECTORY "..") +IF(UNIX) + set_target_properties(stdinstance PROPERTIES LIBRARY_OUTPUT_DIRECTORY "..") +ENDIF() + qt5_use_modules(stdinstance Core Network) target_link_libraries(stdinstance quazip |