File tree Expand file tree Collapse file tree 3 files changed +36
-4
lines changed Expand file tree Collapse file tree 3 files changed +36
-4
lines changed Original file line number Diff line number Diff line change 1+ build
12CMakeCache.txt
23CMakeFiles /
34Makefile
Original file line number Diff line number Diff line change 1- cmake_minimum_required (VERSION 2.8 )
1+ cmake_minimum_required (VERSION 3.1 )
22
3- PROJECT (portplay)
3+ project (sendosc)
4+ set (CMAKE_CXX_STANDARD 11)
45
56if (WIN32 )
6- # nothing to do?
7+ include_directories ( c:\\local\\oscpack_1_1_0\\include )
8+
9+ if (CMAKE_BUILD_TYPE STREQUAL "Debug" )
10+ link_directories ( c:\\local\\oscpack_1_1_0\\lib\\Debug )
11+ else ()
12+ link_directories ( c:\\local\\oscpack_1_1_0\\lib\\Release )
13+ endif ()
14+ set (LIBS ${LIBS} ws2_32 winmm)
15+
716elseif (APPLE )
817 include_directories (/usr/local/include /oscpack)
918 link_directories (/usr/local/lib)
1827endif ()
1928
2029add_executable (sendosc sendosc.cpp)
21- target_link_libraries (sendosc oscpack)
30+ target_link_libraries (sendosc oscpack ${LIBS} )
2231
2332INSTALL (TARGETS sendosc RUNTIME DESTINATION bin)
2433
Original file line number Diff line number Diff line change @@ -75,5 +75,27 @@ $ cmake .
7575$ make
7676$ sudo cp ./sendosc /usr/local/bin/sendosc
7777```
78+ ## Windows (experimental)
79+ ```
80+ > git clone https://github.com/yoggy/sendosc.git
81+ > cd sendosc
82+ > mkdir build
83+ > cd build
84+ > cmake ..
85+ > MSBuild.exe sendosc.vcxproj /t:clean;rebuild /p:Configuration=Release;Platform="win32"
86+ > cd Release
87+ > dir sendosc.exe
7888
89+ Volume in drive C is XXXXXXXX
90+ Volume Serial Number is XXXX-XXXX
7991
92+ Directory of C:\work\sendosc\build\Release
93+
94+ 2019/01/16 20:38 18,432 sendosc.exe
95+ 1 File(s) 18,432 bytes
96+ ```
97+
98+ ## Copyright and license
99+ Copyright (c) 2015 yoggy
100+
101+ Released under the [ MIT license] ( LICENSE.txt )
You can’t perform that action at this time.
0 commit comments