Browse Source

Get basic CMake for mod-script-pipe working.

Can then extend this to more source files.
au-ny-api
James Crook 4 years ago
parent
commit
ece54aa947
  1. 1
      .gitignore
  2. 24
      CMakeLists.txt
  3. 3
      lib-src/CMakeLists.txt
  4. 10
      lib-src/mod-script-pipe/CMakeLists.txt

1
.gitignore

@ -67,6 +67,7 @@ lib-src/libsoxr/*.cmake
CMakeFiles/
CTestTestfile.cmake
cmake_install.cmake
build/*
# Waf build output
lib-src/lv2/.buildvars

24
CMakeLists.txt

@ -0,0 +1,24 @@
#directory audacity top level
cmake_minimum_required (VERSION 2.8.12) # so we can use cotire
cmake_policy(SET CMP0043 NEW) # just hide an annoying warning in 3.0.2
# These stop the results being mixed in with our source tree.
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
# On Windows, WXWIN needs to be set to wxWidgets directory, for wxWidgets to
# be found automatically OR you need to have wxWidgets installed in the
# standard location on drive C: (or D:).
# If you are using wxWidgets 3.1 or later, you will need to update
# cmake's FindwxWidgets.cmake file, since 3.1.1 is not listed.
# These aren't needed, provided you took heed of the above.
#set( wxWidgets_ROOT_DIR "C:/wxWidgets-3.1.1" )
#set( wxWidgets_LIB_DIR "C:/wxWidgets-3.1.1/lib/vc_lib" )
#set( wxWidgets_CONFIGURATION "mswud" )
add_subdirectory( "lib-src" )
#add_subdirectory( "src" )

3
lib-src/CMakeLists.txt

@ -0,0 +1,3 @@
#directory lib-src
add_subdirectory( "mod-script-pipe" )

10
lib-src/mod-script-pipe/CMakeLists.txt

@ -0,0 +1,10 @@
#directory lib-src/mod-script-pipe
project (mod-script-pipe)
find_package(wxWidgets REQUIRED COMPONENTS net core base)
include(${wxWidgets_USE_FILE})
include_directories(${install_dir}../../win)
# This defines the #define on both Windows and Linux.
add_definitions( -DBUILDING_SCRIPT_PIPE )
add_library( mod-script-pipe MODULE PipeServer.cpp ScripterCallback.cpp)
target_link_libraries(mod-script-pipe ${wxWidgets_LIBRARIES})
Loading…
Cancel
Save