mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-09-13 20:23:04 +02:00
Cmake for UI files auto link
this is one of the errors: the ui files must be linked and changed to h files so the h files found in the code by preprocessor
This commit is contained in:
parent
6556fbaf38
commit
d89d1088a3
@ -14,7 +14,7 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
cmake_minimum_required(VERSION 3.5)
|
||||
cmake_minimum_required(VERSION 3.14 FATAL_ERROR)
|
||||
|
||||
message(
|
||||
"_____________________________________________________________________"
|
||||
@ -41,6 +41,11 @@ project(qelectrotech
|
||||
HOMEPAGE_URL "https://qelectrotech.org/"
|
||||
LANGUAGES CXX)
|
||||
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
set(CMAKE_AUTORCC ON)
|
||||
set(CMAKE_AUTOUIC ON)
|
||||
SET(CMAKE_CXX_STANDARD 17)
|
||||
|
||||
set(QET_DIR ${PROJECT_SOURCE_DIR})
|
||||
|
||||
execute_process(
|
||||
|
@ -20,6 +20,11 @@ message("_____________________________________________________________________")
|
||||
|
||||
project(C_unittests LANGUAGES CXX)
|
||||
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
set(CMAKE_AUTORCC ON)
|
||||
set(CMAKE_AUTOUIC ON)
|
||||
SET(CMAKE_CXX_STANDARD 17)
|
||||
|
||||
if(DEFINED ENV{QET_DIR})
|
||||
set(QET_DIR "../..")
|
||||
message("QET_DIR is not set, assuming QET is ../..")
|
||||
|
@ -20,6 +20,11 @@ message("_____________________________________________________________________")
|
||||
|
||||
project(G_unittests LANGUAGES CXX)
|
||||
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
set(CMAKE_AUTORCC ON)
|
||||
set(CMAKE_AUTOUIC ON)
|
||||
SET(CMAKE_CXX_STANDARD 17)
|
||||
|
||||
if(DEFINED ENV{QET_DIR})
|
||||
set(QET_DIR "../..")
|
||||
message("QET_DIR is not set, assuming QET is ../..")
|
||||
|
@ -20,6 +20,11 @@ message("_____________________________________________________________________")
|
||||
|
||||
project(qt_unittests LANGUAGES CXX)
|
||||
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
set(CMAKE_AUTORCC ON)
|
||||
set(CMAKE_AUTOUIC ON)
|
||||
SET(CMAKE_CXX_STANDARD 17)
|
||||
|
||||
if(DEFINED ENV{QET_DIR})
|
||||
set(QET_DIR "../..")
|
||||
message("QET_DIR is not set, assuming QET is ../..")
|
||||
|
Loading…
x
Reference in New Issue
Block a user