27 lines
694 B
CMake
27 lines
694 B
CMake
option(TAB_WINTAB true)
|
|
option(TAB_OTD false)
|
|
|
|
if(TAB_WINTAB)
|
|
add_library(rasa STATIC
|
|
wintab.cpp
|
|
wtutil.cpp
|
|
)
|
|
target_compile_definitions(rasa PUBLIC TAB_WINTAB)
|
|
target_include_directories(rasa
|
|
"."
|
|
"../wintab")
|
|
endif()
|
|
|
|
if(TAB_OTD)
|
|
add_library(rasa STATIC
|
|
cs.cpp )
|
|
target_compile_definitions(rasa PUBLIC TAB_OTD)
|
|
target_include_directories(rasa
|
|
"."
|
|
"../otd")
|
|
# default compiler flags from CMAKE conflict with managed code compliation.
|
|
# probably a better way of doing this.
|
|
set_target_properties(rasa PROPERTIES VS_DOTNET_REFERENCES "System")
|
|
set_target_properties(rasa PROPERTIES COMPILE_FLAGS "/clr")
|
|
set_target_properties(rasa PROPERTIES COMPILE_FLAGS "/Zc:twoPhase-")
|
|
endif() |