2011-01-26 02:54:36 +03:00
|
|
|
cmake_minimum_required(VERSION 2.8.3.20110118)
|
2011-01-26 16:26:31 +03:00
|
|
|
project(VSResource)
|
2011-01-26 02:54:36 +03:00
|
|
|
|
2010-12-22 23:40:53 +03:00
|
|
|
string(REPLACE "/INCREMENTAL:YES" ""
|
|
|
|
CMAKE_EXE_LINKER_FLAGS_DEBUG
|
|
|
|
"${CMAKE_EXE_LINKER_FLAGS_DEBUG}")
|
2011-01-26 02:54:36 +03:00
|
|
|
|
2011-01-26 16:26:31 +03:00
|
|
|
if(MSVC60 OR CYGWIN)
|
|
|
|
# VS6 and Cygwin rc compilers do not deal well with spaces in a "/D" value
|
|
|
|
add_definitions(/DCMAKE_RCDEFINE="test.txt")
|
|
|
|
else()
|
|
|
|
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/test.txt
|
|
|
|
"${CMAKE_CURRENT_BINARY_DIR}/test with spaces.txt" COPYONLY)
|
|
|
|
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
add_definitions(/DCMAKE_RCDEFINE="test with spaces.txt")
|
|
|
|
endif()
|
2011-01-26 02:54:36 +03:00
|
|
|
|
2010-12-21 17:17:21 +03:00
|
|
|
add_executable(VSResource main.cpp test.rc)
|