The code.ill.fr has been recreated and upgraded with the latest version this weekend, If you encounter any problem please inform the Helpdesk.

Verified Commit 066f7923 authored by Tobias WEBER's avatar Tobias WEBER
Browse files

darwin: added an __info_plist section to the binary

parent 745ae275
......@@ -35,3 +35,16 @@ target_link_libraries(takin_cif2xml
add_executable(takin_findsg
findsg.cpp ../structfact/loadcif.h)
target_link_libraries(takin_findsg)
if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
target_link_options(takin_cif2xml
# create an __info_plist section in the binary
PRIVATE LINKER:-sectcreate,__TEXT,__info_plist,${PROJECT_SOURCE_DIR}/../../../core/setup_mac/InfoBundle.plist
)
target_link_options(takin_findsg
# create an __info_plist section in the binary
PRIVATE LINKER:-sectcreate,__TEXT,__info_plist,${PROJECT_SOURCE_DIR}/../../../core/setup_mac/InfoBundle.plist
)
endif()
......@@ -49,5 +49,12 @@ else()
../../tlibs2/libs/glplot.cpp ../../tlibs2/libs/glplot.h)
endif()
if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
target_link_options(takin_magstructfact
# create an __info_plist section in the binary
PRIVATE LINKER:-sectcreate,__TEXT,__info_plist,${PROJECT_SOURCE_DIR}/../../../core/setup_mac/InfoBundle.plist
)
endif()
target_link_libraries(takin_magstructfact ${Boost_LIBRARIES})
qt5_use_modules(takin_magstructfact Core Gui Widgets OpenGL)
......@@ -47,7 +47,7 @@ include_directories("${PROJECT_SOURCE_DIR}" "${Boost_INCLUDE_DIRS}/.." "../..")
# -----------------------------------------------------------------------------
# output
# linker settings
if(BUILD_LIB)
set(CMAKE_POSITION_INDEPENDENT_CODE TRUE)
......@@ -59,6 +59,13 @@ else()
../../tlibs2/libs/glplot.cpp ../../tlibs2/libs/glplot.h)
endif()
if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
target_link_options(takin_pol
# create an __info_plist section in the binary
PRIVATE LINKER:-sectcreate,__TEXT,__info_plist,${PROJECT_SOURCE_DIR}/../../../core/setup_mac/InfoBundle.plist
)
endif()
target_link_libraries(takin_pol ${Boost_LIBRARIES})
qt5_use_modules(takin_pol Core Gui Widgets OpenGL)
# -----------------------------------------------------------------------------
......@@ -51,5 +51,12 @@ else()
../../tlibs2/libs/glplot.cpp ../../tlibs2/libs/glplot.h)
endif()
if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
target_link_options(takin_structfact
# create an __info_plist section in the binary
PRIVATE LINKER:-sectcreate,__TEXT,__info_plist,${PROJECT_SOURCE_DIR}/../../../core/setup_mac/InfoBundle.plist
)
endif()
target_link_libraries(takin_structfact ${Boost_LIBRARIES})
qt5_use_modules(takin_structfact Core Gui Widgets OpenGL)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment