2014-08-07 22:53:57 +04:00
|
|
|
cmake_minimum_required(VERSION 2.8.12)
|
|
|
|
project(VSMASM C ASM_MASM)
|
|
|
|
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
|
|
|
|
add_definitions(-DTESTx64)
|
|
|
|
else()
|
|
|
|
add_definitions(-DTESTi386)
|
2016-07-28 01:43:04 +03:00
|
|
|
string(APPEND CMAKE_ASM_MASM_FLAGS " /safeseh")
|
2014-08-07 22:53:57 +04:00
|
|
|
endif()
|
|
|
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)
|
|
|
|
add_executable(VSMASM main.c foo.asm)
|