This commit is contained in:
Nishi 2025-11-26 07:03:34 +09:00
commit 082c37aef1
Signed by: nishi
GPG key ID: 27EF69B208EB9343
2 changed files with 12 additions and 0 deletions

View file

@ -1,3 +1,4 @@
include_guard(DIRECTORY)
include(GNUInstallDirs)
macro(setup_project name dir)
@ -27,3 +28,13 @@ macro(setup_project name dir)
DESTINATION ${dir}
)
endmacro()
macro(math_add name)
if(NOT CMAKE_SYSTEM_NAME STREQUAL "Windows")
target_link_libraries(
${name}
PRIVATE
m
)
endif()
endmacro()

View file

@ -1,3 +1,4 @@
include_guard(DIRECTORY)
find_package(PkgConfig)
macro(pkg_config_add dest name)