summaryrefslogtreecommitdiffstats
path: root/Tests/VSResource/CMakeLists.txt
blob: 8c14f8db28161ae8bb79fb4cf6ddaad9e2a44a50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
cmake_minimum_required(VERSION 2.8.3.20110118)
project (VSResource)

string(REPLACE "/INCREMENTAL:YES" ""
  CMAKE_EXE_LINKER_FLAGS_DEBUG
  "${CMAKE_EXE_LINKER_FLAGS_DEBUG}")

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")

add_executable(VSResource main.cpp test.rc)