Merge pull request 'Added variables to CMAkeLists.txt' (#4) from build-patch into main
Reviewed-on: #4
This commit was merged in pull request #4.
This commit is contained in:
@@ -2,9 +2,11 @@ cmake_minimum_required(VERSION 3.28.1)
|
||||
|
||||
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_include_directories(test_stuff PUBLIC ./quantum/src/)
|
||||
target_include_directories(test_stuff PUBLIC ${quantum-src})
|
||||
|
||||
Reference in New Issue
Block a user