parent
bc93b96b45
commit
b0dbcafbd5
|
|
@ -3,13 +3,19 @@ project(wtpp)
|
|||
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
|
||||
add_subdirectory(lib/pybind11)
|
||||
|
||||
add_executable(wtpp src/wtpp.cpp)
|
||||
|
||||
pybind11_add_module(py-wave SHARED src/wave.cpp)
|
||||
pybind11_add_module(py-wavetable SHARED src/wavetable.cpp)
|
||||
# pybind11_add_module(common SHARED src/common.cpp)
|
||||
# pybind11_add_module(generators SHARED src/generators.cpp)
|
||||
add_library(wave src/wave.cpp)
|
||||
add_library(wavetable src/wavetable.cpp)
|
||||
add_library(common src/common.cpp)
|
||||
add_library(generators src/generators.cpp)
|
||||
|
||||
add_executable(wtpp src/wtpp.cpp)
|
||||
|
||||
target_link_libraries(wtpp wave wavetable common generators)
|
||||
|
||||
include(FetchContent)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,10 @@
|
|||
#include <iostream>
|
||||
#include "wave.h"
|
||||
#include "wavetable.h"
|
||||
|
||||
// Initialize index at 0 for Wave and Wavetable cycles
|
||||
uint16_t Wave::m_nid = 0;
|
||||
uint16_t Wavetable::m_nid = 0;
|
||||
|
||||
int main()
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue