gearmulator

Emulation of classic VA synths of the late 90s/2000s that are based on Motorola 56300 family DSPs
Log | Files | Refs | Submodules | README | LICENSE

CMakeLists.txt (867B)


      1 cmake_minimum_required(VERSION 3.10)
      2 
      3 project(networkLib)
      4 
      5 add_library(networkLib STATIC)
      6 
      7 set(SOURCES
      8 	exception.cpp exception.h
      9 	logging.cpp logging.h
     10 	networkThread.cpp
     11 	networkThread.h
     12 	stream.cpp
     13 	stream.h
     14 	tcpClient.cpp
     15 	tcpClient.h
     16 	tcpConnection.cpp
     17 	tcpConnection.h
     18 	tcpServer.cpp
     19 	tcpServer.h
     20 	tcpStream.cpp
     21 	tcpStream.h
     22 	udpClient.cpp
     23 	udpClient.h
     24 	udpServer.cpp
     25 	udpServer.h
     26 )
     27 
     28 target_sources(networkLib PRIVATE ${SOURCES})
     29 
     30 source_group("source" FILES ${SOURCES})
     31 
     32 target_link_libraries(networkLib PUBLIC ptypes)
     33 if(MSVC)
     34 	target_link_libraries(networkLib PUBLIC ws2_32)
     35 endif()
     36 
     37 if(UNIX AND NOT APPLE)
     38 	set(THREADS_PREFER_PTHREAD_FLAG TRUE)
     39 	find_package(Threads REQUIRED)
     40 	target_link_libraries(networkLib PRIVATE Threads::Threads)
     41 endif()
     42 
     43 target_include_directories(networkLib PUBLIC ../)
     44 set_property(TARGET networkLib PROPERTY FOLDER "Networking")