Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Wilcox Technologies
Auctions
Commits
898fde35
Verified
Commit
898fde35
authored
Aug 14, 2022
by
A. Wilcox
Browse files
Mac: Build XIBs properly with CMake
parent
4598c51e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
3 deletions
+18
-3
ui/mac/CMakeLists.txt
ui/mac/CMakeLists.txt
+18
-3
No files found.
ui/mac/CMakeLists.txt
View file @
898fde35
...
...
@@ -18,12 +18,27 @@ set(COCOA_UI_SOURCES
main.m
)
set
(
COCOA_UI_RESOURCES
AXAccountsWindow.xib
AXSignInWindow.xib
Auctions.xib
Auctions.icns
)
set
(
COCOA_UI_XIBS
AXAccountsWindow
AXSignInWindow
Auctions
)
add_executable
(
Auctions MACOSX_BUNDLE
${
COCOA_UI_SOURCES
}
${
COCOA_UI_RESOURCES
}
)
set
(
COCOA_COMPILED_NIBS
)
find_program
(
IBTOOL ibtool REQUIRED
)
foreach
(
XIBFILE
${
COCOA_UI_XIBS
}
)
add_custom_command
(
TARGET Auctions POST_BUILD
COMMAND
${
IBTOOL
}
--compile
${
CMAKE_CURRENT_BINARY_DIR
}
/Auctions.app/Contents/Resources/
${
XIBFILE
}
.nib
${
CMAKE_CURRENT_SOURCE_DIR
}
/
${
XIBFILE
}
.xib
COMMENT
"Compiling NIB file
${
XIBFILE
}
.nib"
)
list
(
APPEND COCOA_COMPILED_NIBS
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
XIBFILE
}
.nib
)
endforeach
()
set_target_properties
(
Auctions PROPERTIES
MACOSX_BUNDLE TRUE
MACOSX_BUNDLE_GUI_IDENTIFIER com.wilcox-tech.cocoa.Auctions
...
...
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