mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-07 03:12:36 +01:00
58c0dcd8ce
core targets = developed by us
35 lines
682 B
CMake
35 lines
682 B
CMake
add_library(microprofile STATIC
|
|
microprofile/microprofile.h
|
|
microprofile/microprofile_html.h
|
|
microprofile/microprofile.cpp
|
|
)
|
|
|
|
target_include_directories(microprofile
|
|
PUBLIC
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/microprofile"
|
|
)
|
|
|
|
target_compile_definitions(microprofile
|
|
PUBLIC
|
|
MICROPROFILE_GPU_TIMERS=0
|
|
)
|
|
|
|
find_package(Threads REQUIRED)
|
|
target_link_libraries(microprofile
|
|
PUBLIC
|
|
Threads::Threads
|
|
openrw::checks
|
|
)
|
|
|
|
openrw_target_apply_options(
|
|
TARGET microprofile
|
|
)
|
|
|
|
set_target_properties(microprofile
|
|
PROPERTIES
|
|
CXX_EXTENSIONS OFF
|
|
CXX_STANDARD 11
|
|
)
|
|
|
|
add_library(microprofile::microprofile ALIAS microprofile)
|