Re: [CMake] $TARGET_FILE:tgt in the add_custom_command()

2012-02-15 Thread Kozlovskiy, Alexey
it (and it resulted in a regular expression compile error (runtime)). I'd suggest using something else instead of a + in your target name. * * * *Aaron Meadows* * * *From:*cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] *On Behalf Of *Kozlovskiy, Alexey *Sent:* Tuesday, February

[CMake] $TARGET_FILE:tgt in the add_custom_command()

2012-02-14 Thread Kozlovskiy, Alexey
Hi, If the project name has a symbols - or + the $TARGET_FILE:tgt in the add_custom_command() return Error: Error evaluating generator expression For example: SET ( PROJECT_NAME 00010-Liquid+Gas_as_capture ) set ( SRCS_MAIN_CPT main.c ) add_executable ( ${ PROJECT_NAME } ${SRCS_MAIN_CPT}

[CMake] Creating the resource-only dll with NMake

2012-01-16 Thread Kozlovskiy, Alexey
Hi, I tried to create a simple CMake project to assemble a resource only dll. My CMakeList.txt file: cmake_minimum_required(VERSION 2.8) set (PROJECT_NAME viewerResDLL) project ( ${PROJECT_NAME} ) set ( SRCS_MAIN viewerres_en.rc ) set ( HDRS_MAIN