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 ...@@ -35,3 +35,16 @@ target_link_libraries(takin_cif2xml
add_executable(takin_findsg add_executable(takin_findsg
findsg.cpp ../structfact/loadcif.h) findsg.cpp ../structfact/loadcif.h)
target_link_libraries(takin_findsg) 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() ...@@ -49,5 +49,12 @@ else()
../../tlibs2/libs/glplot.cpp ../../tlibs2/libs/glplot.h) ../../tlibs2/libs/glplot.cpp ../../tlibs2/libs/glplot.h)
endif() 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}) target_link_libraries(takin_magstructfact ${Boost_LIBRARIES})
qt5_use_modules(takin_magstructfact Core Gui Widgets OpenGL) qt5_use_modules(takin_magstructfact Core Gui Widgets OpenGL)
...@@ -47,7 +47,7 @@ include_directories("${PROJECT_SOURCE_DIR}" "${Boost_INCLUDE_DIRS}/.." "../..") ...@@ -47,7 +47,7 @@ include_directories("${PROJECT_SOURCE_DIR}" "${Boost_INCLUDE_DIRS}/.." "../..")
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
# output # linker settings
if(BUILD_LIB) if(BUILD_LIB)
set(CMAKE_POSITION_INDEPENDENT_CODE TRUE) set(CMAKE_POSITION_INDEPENDENT_CODE TRUE)
...@@ -59,6 +59,13 @@ else() ...@@ -59,6 +59,13 @@ else()
../../tlibs2/libs/glplot.cpp ../../tlibs2/libs/glplot.h) ../../tlibs2/libs/glplot.cpp ../../tlibs2/libs/glplot.h)
endif() 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}) target_link_libraries(takin_pol ${Boost_LIBRARIES})
qt5_use_modules(takin_pol Core Gui Widgets OpenGL) qt5_use_modules(takin_pol Core Gui Widgets OpenGL)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
...@@ -51,5 +51,12 @@ else() ...@@ -51,5 +51,12 @@ else()
../../tlibs2/libs/glplot.cpp ../../tlibs2/libs/glplot.h) ../../tlibs2/libs/glplot.cpp ../../tlibs2/libs/glplot.h)
endif() 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}) target_link_libraries(takin_structfact ${Boost_LIBRARIES})
qt5_use_modules(takin_structfact Core Gui Widgets OpenGL) 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