17 lines
500 B
CMake
17 lines
500 B
CMake
|
|
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")
|