15 lines
377 B
CMake
15 lines
377 B
CMake
cmake_minimum_required(VERSION 3.16)
|
|
|
|
project(trans_util LANGUAGES CXX)
|
|
|
|
if (MSVC)
|
|
add_definitions(-D_WIN32_WINNT=0x0601)
|
|
add_compile_options(/source-charset:utf-8)
|
|
endif()
|
|
|
|
set(SOURCES
|
|
util.h util.cpp
|
|
)
|
|
add_library(trans_util STATIC ${SOURCES})
|
|
target_link_libraries(trans_util PUBLIC Ofen)
|
|
target_include_directories(trans_util PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) |