Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Scientific Software
Takin
mag-core
Commits
066f7923
Verified
Commit
066f7923
authored
Jan 25, 2021
by
Tobias WEBER
Browse files
darwin: added an __info_plist section to the binary
parent
745ae275
Changes
4
Hide whitespace changes
Inline
Side-by-side
tools/cif2xml/CMakeLists.txt
View file @
066f7923
...
...
@@ -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
()
tools/magstructfact/CMakeLists.txt
View file @
066f7923
...
...
@@ -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
)
tools/pol/CMakeLists.txt
View file @
066f7923
...
...
@@ -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
)
# -----------------------------------------------------------------------------
tools/structfact/CMakeLists.txt
View file @
066f7923
...
...
@@ -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
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment