2016-10-26 08:21:58 +08:00
|
|
|
project(xlnt.samples)
|
|
|
|
|
|
|
|
include_directories(${XLNT_INCLUDE_DIR})
|
|
|
|
|
2016-10-26 08:53:11 +08:00
|
|
|
if(SHARED)
|
|
|
|
set(XLNT_LIB xlnt.shared)
|
|
|
|
else()
|
|
|
|
set(XLNT_LIB xlnt.static)
|
|
|
|
endif()
|
|
|
|
|
2016-10-26 08:21:58 +08:00
|
|
|
add_executable(sample-basic ../samples/sample.cpp)
|
2016-10-26 08:53:11 +08:00
|
|
|
target_link_libraries(sample-basic ${XLNT_LIB})
|
2016-10-26 08:21:58 +08:00
|
|
|
|
|
|
|
add_executable(sample-decrypt ../samples/decrypt.cpp)
|
2016-10-26 08:53:11 +08:00
|
|
|
target_link_libraries(sample-decrypt ${XLNT_LIB})
|
2016-10-26 08:21:58 +08:00
|
|
|
|
|
|
|
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/data
|
|
|
|
DESTINATION ${CMAKE_BINARY_DIR}/bin)
|