Added in variables to CMakeLists.txt to make managing directories easier in the future.
13 lines
343 B
CMake
13 lines
343 B
CMake
cmake_minimum_required(VERSION 3.28.1)
|
|
|
|
project(quantum-utils)
|
|
|
|
set(quantum-src "./quantum/src/")
|
|
set(test_stuff-src "./test_stuff/src/")
|
|
|
|
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})
|