CMakeLists.txt (756B)
1 cmake_minimum_required(VERSION 3.10) 2 3 project(mqTestConsole) 4 5 add_executable(mqTestConsole) 6 7 set(SOURCES 8 mqTestConsole.cpp 9 ) 10 11 if(NOT ANDROID) 12 list(APPEND SOURCES ../portmidi/pm_common/portmidi.h) 13 endif() 14 15 target_sources(mqTestConsole PRIVATE ${SOURCES}) 16 source_group("source" FILES ${SOURCES}) 17 18 target_link_libraries(mqTestConsole PUBLIC mqConsoleLib portaudio_static) 19 if(ANDROID) 20 target_compile_definitions(mqTestConsole PUBLIC "ANDROID") 21 else() 22 target_link_libraries(mqTestConsole PUBLIC portmidi-static) 23 endif() 24 25 if(UNIX AND NOT APPLE) 26 target_link_libraries(mqTestConsole PUBLIC -static-libgcc -static-libstdc++) 27 endif() 28 29 #install(TARGETS mqTestConsole DESTINATION . COMPONENT STANDALONE) 30 set_property(TARGET mqTestConsole PROPERTY FOLDER "Vavra")