Skip to content

Commit

Permalink
Minimal fix for #345
Browse files Browse the repository at this point in the history
  • Loading branch information
jmarrec committed May 27, 2021
1 parent e47cbb1 commit 7e13e75
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions src/openstudio_app/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -380,18 +380,17 @@ if( APPLE )
list(APPEND QTPLUGINS "\${CMAKE_INSTALL_PREFIX}/OpenStudioApp.app/Contents/Frameworks/QtWebEngineCore.framework/Versions/5/Helpers/QtWebEngineProcess.app/Contents/MacOS/QtWebEngineProcess")
endif()

if(WIN32 OR APPLE)
install(CODE "
# APPS might be a symbolic link which does not work with fixup_bundle
# expand APPS to a real path
get_filename_component(APPS_EXPANDED ${APPS} REALPATH)
include(BundleUtilities)
# This file defines some libs we are excluding. Some like concrt140.dll are installed already via InstallRequiredSystemLibraries
include(\"${CMAKE_SOURCE_DIR}/CMake/FixupBundleOverrides.cmake\")
fixup_bundle(\"\${APPS_EXPANDED}\" \"${QTPLUGINS}\" \"${DIRS}\")
" COMPONENT "OpenStudioApp"
)
endif()
# This does some "magic" **including on Linux** (cf #345) (On linux it will install in ./bin/ the libopenstudio.so, and libicu* stuff)
install(CODE "
# APPS might be a symbolic link which does not work with fixup_bundle
# expand APPS to a real path
get_filename_component(APPS_EXPANDED ${APPS} REALPATH)
include(BundleUtilities)
# This file defines some libs we are excluding. Some like concrt140.dll are installed already via InstallRequiredSystemLibraries
include(\"${CMAKE_SOURCE_DIR}/CMake/FixupBundleOverrides.cmake\")
fixup_bundle(\"\${APPS_EXPANDED}\" \"${QTPLUGINS}\" \"${DIRS}\")
" COMPONENT "OpenStudioApp"
)

set(${target_name}_test_src
test/OpenStudioAppFixture.hpp
Expand Down

0 comments on commit 7e13e75

Please sign in to comment.