Skip to content

Commit

Permalink
Merge pull request #116 from jpcima/fix-plot
Browse files Browse the repository at this point in the history
fix the compile time definition of ENABLE_PLOTS
  • Loading branch information
jpcima authored Nov 11, 2018
2 parents 472d09f + 5f0c128 commit 8e1d503
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ target_link_libraries(Measurer PUBLIC Chips Common Qt5::Concurrent)
if(NOT MSVC)
target_compile_options(Measurer PRIVATE "-fopenmp")
endif()
if(ENABLE_PLOTS)
target_compile_definitions(Measurer PUBLIC "-DENABLE_PLOTS")
endif()

set(SOURCES
"src/audio.cpp"
Expand Down Expand Up @@ -168,7 +171,6 @@ add_executable(OPL3BankEditor WIN32 MACOSX_BUNDLE
set_target_properties(OPL3BankEditor PROPERTIES
OUTPUT_NAME "opl3_bank_editor")
if(ENABLE_PLOTS)
target_compile_definitions(OPL3BankEditor PRIVATE "-DENABLE_PLOTS")
target_include_directories(OPL3BankEditor PRIVATE ${QWT_INCLUDE_DIRS})
endif()
if(DEBUG_WRITE_AMPLITUDE_PLOT)
Expand Down

0 comments on commit 8e1d503

Please sign in to comment.