Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit f2b5f056 authored by g4m4's avatar g4m4
Browse files

[BUILD] Add and use Cmake aliases

parent 08dec7e8
No related branches found
No related tags found
No related merge requests found
Pipeline #61695 passed
# @brief SandBox standalone root cmake file
add_executable(sandbox_cmd)
add_executable(sandbox::cmd ALIAS sandbox_cmd)
target_sources(sandbox_cmd PRIVATE "main.cc")
target_link_libraries(sandbox_cmd PUBLIC sandbox_lib)
target_link_libraries(sandbox_cmd PUBLIC sandbox::lib)
add_custom_command(
TARGET sandbox_cmd
......
# @brief SandBox main source folder cmake file
add_library(sandbox_lib)
add_library(sandbox::lib ALIAS sandbox_lib)
target_include_directories(
sandbox_lib
......
add_executable(sandbox_test)
add_executable(sandbox::test ALIAS sandbox_test)
set_target_properties(sandbox_test PROPERTIES CXX_STANDARD 11)
target_sources(sandbox_test PRIVATE "test.cpp")
target_link_libraries(sandbox_test PRIVATE doctest sandbox_lib)
target_link_libraries(sandbox_test PRIVATE doctest sandbox::lib)
install(
TARGETS sandbox_test
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment