diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-03-07 14:08:52 +0100 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-03-07 14:08:52 +0100 |
commit | 5a9d3032869382ec2103e11ef785fe939f93a74f (patch) | |
tree | 2df4152aa9121d569da7b26f26986b60d1f61eb5 /lib | |
parent | Show local branch and commit in updater (diff) | |
download | smolbote-5a9d3032869382ec2103e11ef785fe939f93a74f.tar.xz |
Reworked CMakeLists to be a bit more readable
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bookmarks/CMakeLists.txt | 8 | ||||
-rw-r--r-- | lib/downloads/CMakeLists.txt | 8 |
2 files changed, 14 insertions, 2 deletions
diff --git a/lib/bookmarks/CMakeLists.txt b/lib/bookmarks/CMakeLists.txt index e94c494..b7bbf0d 100644 --- a/lib/bookmarks/CMakeLists.txt +++ b/lib/bookmarks/CMakeLists.txt @@ -1,4 +1,10 @@ -cmake_minimum_required(VERSION 3.1.0) +# Find includes in corresponding build directories +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +# Instruct CMake to run moc automatically when needed. +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTOUIC ON) +set(CMAKE_AUTORCC ON) add_library(bookmarks bookmarksform.ui diff --git a/lib/downloads/CMakeLists.txt b/lib/downloads/CMakeLists.txt index ca67f0a..ad1a3fe 100644 --- a/lib/downloads/CMakeLists.txt +++ b/lib/downloads/CMakeLists.txt @@ -1,4 +1,10 @@ -cmake_minimum_required(VERSION 3.1.0) +# Find includes in corresponding build directories +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +# Instruct CMake to run moc automatically when needed. +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTOUIC ON) +set(CMAKE_AUTORCC ON) add_library(downloads downloadsform.ui |