Added variables to CMAkeLists.txt
Added in variables to CMakeLists.txt to make managing directories easier in the future.
This commit is contained in:
@@ -2,9 +2,11 @@ cmake_minimum_required(VERSION 3.28.1)
|
|||||||
|
|
||||||
project(quantum-utils)
|
project(quantum-utils)
|
||||||
|
|
||||||
add_library(quantum SHARED ./quantum/src/test.c)
|
set(quantum-src "./quantum/src/")
|
||||||
|
set(test_stuff-src "./test_stuff/src/")
|
||||||
|
|
||||||
add_executable(test_stuff ./test_stuff/src/main.c)
|
add_library(quantum SHARED ${quantum-src}test.c)
|
||||||
|
add_executable(test_stuff ${test_stuff-src}main.c)
|
||||||
|
|
||||||
target_link_libraries(test_stuff quantum)
|
target_link_libraries(test_stuff quantum)
|
||||||
target_include_directories(test_stuff PUBLIC ./quantum/src/)
|
target_include_directories(test_stuff PUBLIC ${quantum-src})
|
||||||
|
|||||||
Reference in New Issue
Block a user