| 1 |
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/test) |
| 2 |
|
| 3 |
include_directories(../src) |
| 4 |
aux_source_directory(. charcode_test_src) |
| 5 |
add_executable(charcode_test ${charcode_test_src}) |
| 6 |
target_link_libraries(charcode_test |
| 7 |
${charcode_library} |
| 8 |
${charcode_deps} |
| 9 |
${GTEST_LIBRARIES}) |
| 10 |
if(BUILD_SHARED_LIBS) |
| 11 |
target_compile_definitions(charcode_test PRIVATE RIME_IMPORTS) |
| 12 |
endif(BUILD_SHARED_LIBS) |
| 13 |
|
| 14 |
set(charcode_test_executable ${EXECUTABLE_OUTPUT_PATH}/charcode_test) |
| 15 |
add_test(charcode_test ${charcode_test_executable}) |