Hi there, I only started using CMake a couple days ago so please pardon
the newbie questions. I'm having some trouble understanding the
relationships between add_dependencies, add_custom_command, and
add_custom_target as they relate to forming dependencies on external
project targets.
I am trying
This works for me:
---CMakeLists.txt
cmake_minimum_required(VERSION 3.0 FATAL_ERROR)
project(asm CXX)
add_executable(foo foo.bar)
set_source_files_properties(foo.bar PROPERTIES LANGUAGE CXX)
---foo.bar---
int main() { return 0;}
$ /cygdrive/c/Program\ Files\ \(x86\)/CMake/bin/cmake -GNinja
On 3/19/2015 2:20 AM, Hendrik Sattler wrote:
>How do I stop CMake from generating a Makefile?
Don't do in source builds.
mkdir build.
cd build
cmake ..
-Bill
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitwar
Thank you Mark for hint about that solution. I think the losses may be
reduced by distributing #includes directives across many well known files
(as in example: GenChunk.tar) Those chunks can be already compiled in
parallel.
Best regards, Tomasz.
2015-03-12 17:50 GMT+01:00 Mark Abraham :
> Hi,
I have written a cmake tool which allows you to modify CMakeLists files
from the command line. It is written in pure cmake leverages my cmake token
parser/ reflection functions which I added to cmakepp (a free, universial,
open source, pure cmake function library)
http://thetoeb.de/2015/03/19/cmak
Hello All
I'm newer for CMake. Now I'm trying to use CMake in current project, but I met
following issue
CMakeLists.txt :
FIND_PACKAGE(PkgConfig)PKG_CHECK_MODULES(GLIB
glib-2.0)PKG_CHECK_MODULES(GTHREAD gthread-2.0)PKG_CHECK_MODULES(GOBJECT
gobject-2.0)
SET(GLIB_LIBS glib-2.0 gthread-2.0 gobje