forked from hsstraub/TerpstraSysEx.2014
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3f79147
commit a94c094
Showing
2 changed files
with
52 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,11 +8,11 @@ add_subdirectory($ENV{juce_DIR} subprojects/juce) | |
juce_add_gui_app( | ||
LumatoneEditor | ||
PRODUCT_NAME "Lumatone Editor" | ||
# VERSION "1.2.0" | ||
# BUNDLE_ID "com.Lumatone.LumatoneEditor" | ||
VERSION "1.2.0" | ||
BUNDLE_ID "com.Lumatone.LumatoneEditor" | ||
# ICON_SMALL "${CMAKE_CURRENT_SOURCE_DIR}/BinaryData/Assets/PNG/[email protected]" | ||
# ICON_BIG "${CMAKE_CURRENT_SOURCE_DIR}/BinaryData/Assets/PNG/[email protected]" | ||
# DOCUMENT_EXTENSIONS "ltn" | ||
DOCUMENT_EXTENSIONS "ltn" | ||
) | ||
juce_generate_juce_header(LumatoneEditor) | ||
|
||
|
@@ -31,13 +31,23 @@ file(GLOB_RECURSE SourceCode | |
) | ||
|
||
if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows") | ||
file(GLOB_RECURSE LibraryCode CONFIGURE_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/Libraries/win64/include/*.h") | ||
set(CryptoLib "${CMAKE_CURRENT_SOURCE_DIR}/Libraries/win64/bin/libcrypto-1_1-x64.dll") | ||
set(SSHLib "${CMAKE_CURRENT_SOURCE_DIR}/Libraries/win64/bin/libssh2-x64.dll") | ||
set(LibraryPath "${CMAKE_CURRENT_SOURCE_DIR}/Libraries/win64") | ||
set(LibraryInclude "${LibraryPath}/include") | ||
set(LibraryCode "${LibraryInclude}/libssh2.h") | ||
# set(CryptoLib "${CMAKE_CURRENT_SOURCE_DIR}/Libraries/win64/bin/libcrypto-1_1-x64.dll") | ||
# set(SSHLib "${CMAKE_CURRENT_SOURCE_DIR}/Libraries/win64/bin/libssh2-x64.dll") | ||
|
||
# add_library( CryptoLib SHARED IMPORTED ) | ||
# set_target_properties( CryptoLib PROPERTIES IMPORTED_LOCATION "${CMAKE_BINARY_DIR}/libcrypto-1_1-x64.dll" ) | ||
|
||
add_library( SSHLib SHARED IMPORTED ) | ||
set_target_properties( SSHLib PROPERTIES IMPORTED_LOCATION "${CMAKE_BINARY_DIR}/libssh2-x64.dll" ) | ||
set_target_properties( SSHLib PROPERTIES IMPORTED_IMPLIB "${LibraryPath}/lib/libssh2.dll.a" ) | ||
endif() | ||
|
||
if (UNIX) | ||
file(GLOB_RECURSE LibraryCode CONFIGURE_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/Libraries/mac/include/*.h") | ||
set(LibraryInclude "${CMAKE_CURRENT_SOURCE_DIR}/Libraries/mac/include") | ||
set(LibraryCode "${CMAKE_CURRENT_SOURCE_DIR}/Libraries/mac/include/libssh2.h") | ||
file(READ | ||
CryptoLib | ||
"${CMAKE_CURRENT_SOURCE_DIR}/Libraries/mac/lib/libgpg-error.dylib" | ||
|
@@ -46,6 +56,8 @@ if (UNIX) | |
file(READ SSHLib "${CMAKE_CURRENT_SOURCE_DIR}/Libraries/mac/lib/libssh2.dylib") | ||
endif() | ||
|
||
include_directories(${LibraryInclude}) | ||
|
||
target_sources( | ||
LumatoneEditor | ||
PRIVATE | ||
|
@@ -84,6 +96,13 @@ if (UNIX) | |
) | ||
endif() | ||
|
||
if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows") | ||
target_compile_definitions(LumatoneEditor | ||
PRIVATE | ||
SERVERHOST="192.168.7.2" | ||
) | ||
endif() | ||
|
||
file(GLOB_RECURSE LibraryBinaryData | ||
CONFIGURE_DEPENDS | ||
"${CMAKE_CURRENT_SOURCE_DIR}/Source/lumatone_editor_library/assets/*" | ||
|
@@ -106,8 +125,8 @@ target_link_libraries(LumatoneEditor | |
juce::juce_audio_devices | ||
juce::juce_opengl | ||
|
||
# ${CryptoLib} | ||
# ${SSHLib} | ||
# CryptoLib | ||
SSHLib | ||
|
||
PUBLIC | ||
juce::juce_recommended_config_flags | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters