Enable cotire again

Tue, 28 Jun 2022 19:57:45 +0300

author
Teemu Piippo <teemu.s.piippo@gmail.com>
date
Tue, 28 Jun 2022 19:57:45 +0300
changeset 302
d59cb01d8031
parent 301
8ccd6fdb30dc
child 303
f4383ac6e21e

Enable cotire again

CMakeLists.txt file | annotate | diff | comparison | revisions
--- a/CMakeLists.txt	Tue Jun 28 19:49:45 2022 +0300
+++ b/CMakeLists.txt	Tue Jun 28 19:57:45 2022 +0300
@@ -1,9 +1,9 @@
 cmake_minimum_required(VERSION 3.0)
 project(LDForge VERSION 1.0)
 set(COPYRIGHT "Copyright (C) 2013 - 2022 Teemu Piippo")
-
 string(TOLOWER ${PROJECT_NAME} TARGET_NAME)
 set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMake")
+include(cotire)
 set(OpenGL_GL_PREFERENCE GLVND)
 find_package(Qt6 COMPONENTS Core Widgets OpenGL UiPlugin OpenGLWidgets)
 if (Qt6_FOUND)
@@ -172,6 +172,7 @@
 	target_link_libraries(${TARGET_NAME} PRIVATE Qt6::Core5Compat)
 	target_link_libraries(${TARGET_NAME} PRIVATE Qt6::OpenGLWidgets)
 endif()
+cotire(${TARGET_NAME})
 
 add_custom_target(linelength ALL
 	COMMAND python3

mercurial