resolve #4328 by moving plugin into lib folder
This commit is contained in:
parent
a98c4bd02a
commit
06253c965b
|
@ -16,7 +16,6 @@
|
||||||
|
|
||||||
add_subdirectory(lib)
|
add_subdirectory(lib)
|
||||||
add_subdirectory(cmd)
|
add_subdirectory(cmd)
|
||||||
add_subdirectory(plugin)
|
|
||||||
add_subdirectory(micro)
|
add_subdirectory(micro)
|
||||||
|
|
||||||
if (NOT ${CMAKE_SYSTEM_NAME} MATCHES "IRIX")
|
if (NOT ${CMAKE_SYSTEM_NAME} MATCHES "IRIX")
|
||||||
|
|
|
@ -23,9 +23,11 @@ add_subdirectory(ipc)
|
||||||
add_subdirectory(mt)
|
add_subdirectory(mt)
|
||||||
add_subdirectory(net)
|
add_subdirectory(net)
|
||||||
add_subdirectory(platform)
|
add_subdirectory(platform)
|
||||||
|
add_subdirectory(plugin)
|
||||||
add_subdirectory(server)
|
add_subdirectory(server)
|
||||||
add_subdirectory(synergy)
|
add_subdirectory(synergy)
|
||||||
|
|
||||||
|
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
add_subdirectory(synwinhk)
|
add_subdirectory(synwinhk)
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -21,16 +21,16 @@ if (SYNERGY_ADD_HEADERS)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
set(OPENSSL_INCLUDE ../../../ext/openssl/inc32)
|
set(OPENSSL_INCLUDE ../../../../ext/openssl/inc32)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (APPLE)
|
if (APPLE)
|
||||||
set(OPENSSL_INCLUDE ../../../ext/openssl/include)
|
set(OPENSSL_INCLUDE ../../../../ext/openssl/include)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include_directories(
|
include_directories(
|
||||||
../../lib/
|
../../../lib/
|
||||||
../../..
|
../../../..
|
||||||
${OPENSSL_INCLUDE}
|
${OPENSSL_INCLUDE}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -62,8 +62,8 @@ if (WIN32)
|
||||||
TARGET ns
|
TARGET ns
|
||||||
POST_BUILD
|
POST_BUILD
|
||||||
COMMAND xcopy /Y /Q
|
COMMAND xcopy /Y /Q
|
||||||
..\\..\\..\\..\\lib\\${CMAKE_CFG_INTDIR}\\ns.dll
|
..\\..\\..\\..\\..\\lib\\${CMAKE_CFG_INTDIR}\\ns.dll
|
||||||
..\\..\\..\\..\\bin\\${CMAKE_CFG_INTDIR}\\plugins\\
|
..\\..\\..\\..\\..\\bin\\${CMAKE_CFG_INTDIR}\\plugins\\
|
||||||
)
|
)
|
||||||
else()
|
else()
|
||||||
if (APPLE)
|
if (APPLE)
|
||||||
|
@ -83,11 +83,11 @@ else()
|
||||||
TARGET ns
|
TARGET ns
|
||||||
POST_BUILD
|
POST_BUILD
|
||||||
COMMAND mkdir -p
|
COMMAND mkdir -p
|
||||||
../../../../../bin/plugins
|
${CMAKE_SOURCE_DIR}/bin/plugins
|
||||||
&&
|
&&
|
||||||
cp
|
cp
|
||||||
../../../../../lib/libns.so
|
${CMAKE_SOURCE_DIR}/lib/libns.so
|
||||||
../../../../../bin/plugins/
|
${CMAKE_SOURCE_DIR}/bin/plugins/
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
|
@ -27,6 +27,6 @@ add_custom_command(
|
||||||
TARGET winmmjoy
|
TARGET winmmjoy
|
||||||
POST_BUILD
|
POST_BUILD
|
||||||
COMMAND xcopy /Y /Q
|
COMMAND xcopy /Y /Q
|
||||||
..\\..\\..\\..\\lib\\${CMAKE_CFG_INTDIR}\\winmmjoy.*
|
..\\..\\..\\..\\..\\lib\\${CMAKE_CFG_INTDIR}\\winmmjoy.*
|
||||||
..\\..\\..\\..\\bin\\${CMAKE_CFG_INTDIR}\\plugins\\
|
..\\..\\..\\..\\..\\bin\\${CMAKE_CFG_INTDIR}\\plugins\\
|
||||||
)
|
)
|
Loading…
Reference in New Issue