summaryrefslogtreecommitdiff
path: root/Settings.cmake
diff options
context:
space:
mode:
authorJohn Fultz <jfultz@wolfram.com>2019-07-19 12:16:43 -0500
committerJohn Fultz <jfultz@wolfram.com>2019-07-19 12:16:43 -0500
commitf9e9448738a5fae6f50223eb9905fc54fa4d8d1d (patch)
treecee58c30850bf940c9588e25fadcfd1da41eddcc /Settings.cmake
parent20fa14103552e05540a2943335a220f22766c90b (diff)
First cut of a cmake build.
Building on macOS right now. cmake will soon replace qmake as the supported build system. Some notes about the implementation: * libquackle and libquackleio can be separately built as before. * quacker still links to the static libraries for libquackle and libquackleio, but quacker's cmake file includes those projects, which means everything builds at once. No more need to run separate builds of everything to get a GUI. And debugging is easier now that the libraries are incorporated into the quacker project. * I tried to get cmake to build the macOS app bundle, but cmake is unable, by conventional means, to build a non-flat Resources directory (which many people have complained about). Right now, the default build just builds the binary, and you have to run it from the command-line. But -DBUNDLE=ON will build a shell of a bundle. It won't work, but I intend to create an Xcode project from it for building the bundle, to make it easier for me to deliver a code-signed and notarized app bundle. * I've got CMakeLists.txt files for the resources, but they're not really doing anything right now. Maybe later. * Minimum macOS version for the cmake build is 10.10.
Diffstat (limited to 'Settings.cmake')
-rw-r--r--Settings.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/Settings.cmake b/Settings.cmake
new file mode 100644
index 0000000..df21391
--- /dev/null
+++ b/Settings.cmake
@@ -0,0 +1,6 @@
+include_guard()
+
+message("-- Including settings")
+set(CMAKE_CXX_STANDARD 14)
+set(CMAKE_CXX_STANDARD_REQUIRED ON)
+set(CMAKE_OSX_DEPLOYMENT_TARGET 10.10)