things
This commit is contained in:
parent
0f7558cf89
commit
082c37aef1
2 changed files with 12 additions and 0 deletions
|
|
@ -1,3 +1,4 @@
|
||||||
|
include_guard(DIRECTORY)
|
||||||
include(GNUInstallDirs)
|
include(GNUInstallDirs)
|
||||||
|
|
||||||
macro(setup_project name dir)
|
macro(setup_project name dir)
|
||||||
|
|
@ -27,3 +28,13 @@ macro(setup_project name dir)
|
||||||
DESTINATION ${dir}
|
DESTINATION ${dir}
|
||||||
)
|
)
|
||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
|
macro(math_add name)
|
||||||
|
if(NOT CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
||||||
|
target_link_libraries(
|
||||||
|
${name}
|
||||||
|
PRIVATE
|
||||||
|
m
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
endmacro()
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
include_guard(DIRECTORY)
|
||||||
find_package(PkgConfig)
|
find_package(PkgConfig)
|
||||||
|
|
||||||
macro(pkg_config_add dest name)
|
macro(pkg_config_add dest name)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue