2023-09-24 23:27:20 +08:00
|
|
|
cmake_minimum_required(VERSION 3.12)
|
|
|
|
project(IronPad LANGUAGES CXX)
|
|
|
|
|
2023-09-25 21:45:53 +08:00
|
|
|
# add libcmo if not existed
|
|
|
|
if (NOT TARGET LibCmo)
|
|
|
|
add_subdirectory("../LibCmo" "LibCmo.out")
|
|
|
|
endif ()
|
2023-09-24 23:27:20 +08:00
|
|
|
|
|
|
|
# setup sources
|
|
|
|
set(ironpad_headers ".")
|
|
|
|
set(ironpad_src IronPad.cpp)
|
|
|
|
|
|
|
|
# create static library
|
|
|
|
add_library(IronPad
|
|
|
|
STATIC
|
|
|
|
${ironpad_src}
|
|
|
|
)
|
|
|
|
target_link_libraries(IronPad
|
|
|
|
PRIVATE
|
|
|
|
LibCmo
|
|
|
|
)
|
|
|
|
target_include_directories(IronPad
|
|
|
|
PUBLIC
|
|
|
|
${ironpad_headers}
|
|
|
|
)
|
2023-09-25 21:45:53 +08:00
|
|
|
|
|
|
|
# set project standard
|
|
|
|
set_target_properties(IronPad
|
|
|
|
PROPERTIES
|
|
|
|
CXX_STANDARD 20
|
|
|
|
CXX_STANDARD_REQUIRED 20
|
|
|
|
CXX_EXTENSION OFF
|
|
|
|
)
|