You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
500 B
17 lines
500 B
12 years ago
|
|
||
|
cmake_minimum_required(VERSION 2.8)
|
||
|
|
||
|
project(CompileDefinitions)
|
||
|
|
||
|
if ("${CMAKE_GENERATOR}" STREQUAL "Visual Studio 6")
|
||
|
add_definitions(-DNO_SPACES_IN_DEFINE_VALUES)
|
||
|
endif()
|
||
|
|
||
|
add_subdirectory(add_definitions_command)
|
||
|
add_subdirectory(target_prop)
|
||
|
add_subdirectory(add_definitions_command_with_target_prop)
|
||
|
|
||
|
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/dummyexecutable.cpp" "int main(int, char **) { return 0; }\n")
|
||
|
|
||
|
add_executable(CompileDefinitions "${CMAKE_CURRENT_BINARY_DIR}/dummyexecutable.cpp")
|