21 lines
537 B
CMake
21 lines
537 B
CMake
cmake_minimum_required(VERSION 3.16)
|
|
|
|
project(ofen LANGUAGES CXX)
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
if (MSVC)
|
|
add_compile_options(/source-charset:utf-8)
|
|
endif()
|
|
|
|
message(STATUS "System: ${CMAKE_SYSTEM_NAME}")
|
|
message(STATUS "Compiler CXX ID: ${CMAKE_CXX_COMPILER_ID}")
|
|
|
|
set(SRC_FILES
|
|
include/of_path.h src/of_path.cpp
|
|
include/of_str.h src/of_str.cpp
|
|
)
|
|
|
|
include_directories(include)
|
|
add_library(Ofen STATIC ${SRC_FILES})
|
|
target_include_directories(Ofen PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include) |