thread
Brett 2024-08-16 20:15:38 -04:00
parent 928f73d9e0
commit b041d1ffba
1 changed files with 15 additions and 7 deletions

View File

@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.25)
project(blt-gp VERSION 0.0.144)
project(blt-gp VERSION 0.0.145)
include(CTest)
@ -27,6 +27,12 @@ add_library(blt-gp ${PROJECT_BUILD_FILES})
target_compile_options(blt-gp PRIVATE -Wall -Wextra -Wpedantic -Wno-comment)
target_link_options(blt-gp PRIVATE -Wall -Wextra -Wpedantic -Wno-comment)
find_program(MOLD "mold")
if (NOT ${MOLD} STREQUAL MOLD-NOTFOUND)
target_compile_options(blt-gp PUBLIC -fuse-ld=mold)
endif ()
target_include_directories(blt-gp PUBLIC include/)
target_link_libraries(blt-gp PRIVATE BLT Threads::Threads)
@ -51,6 +57,8 @@ macro(blt_add_project name source type)
project(${name}-${type})
#add_compile_options(-fuse-ld=mold)
add_executable(${name}-${type} ${source})
target_link_libraries(${name}-${type} PRIVATE BLT blt-gp Threads::Threads)