[vlmc-devel] cmake: Move automoc to src/CMakeLists.txt
Hugo Beauzée-Luyssen
git at videolan.org
Fri Apr 1 23:56:21 CEST 2016
vlmc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Fri Apr 1 23:49:43 2016 +0200| [e822fde1434e86616b4d491a7824c31bcbf60573] | committer: Hugo Beauzée-Luyssen
cmake: Move automoc to src/CMakeLists.txt
> https://code.videolan.org/videolan/vlmc/commit/e822fde1434e86616b4d491a7824c31bcbf60573
---
CMakeLists.txt | 2 --
src/CMakeLists.txt | 3 +++
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7e6c19d..8e5e36d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -64,8 +64,6 @@ SET(CMAKE_VERBOSE_MAKEFILE OFF)
# Find includes in corresponding build directories
SET(CMAKE_INCLUDE_CURRENT_DIR ON)
-# Instruct CMake to run moc automatically when needed.
-SET(CMAKE_AUTOMOC ON)
# Path to contribs
SET(CONTRIBS_PATH ${CMAKE_CURRENT_SOURCE_DIR}/contribs)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 6a6b785..54e3686 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -34,6 +34,9 @@ endif()
INCLUDE_DIRECTORIES(${FREI0R_INCLUDE_DIR})
+# Instruct CMake to run moc automatically when needed.
+SET(CMAKE_AUTOMOC ON)
+
SET(VLMC_SRCS
Commands/Commands.cpp
Backend/IBackend.h
More information about the Vlmc-devel
mailing list