Skip to content

Commit 9488f2d

Browse files
committed
added build configuration for vc14
1 parent a2fb2fb commit 9488f2d

File tree

3 files changed

+36
-4
lines changed

3 files changed

+36
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
build
12
CMakeCache.txt
23
CMakeFiles/
34
Makefile

CMakeLists.txt

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
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

56
if(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+
716
elseif(APPLE)
817
include_directories(/usr/local/include/oscpack)
918
link_directories(/usr/local/lib)
@@ -18,7 +27,7 @@ else()
1827
endif()
1928

2029
add_executable(sendosc sendosc.cpp)
21-
target_link_libraries(sendosc oscpack)
30+
target_link_libraries(sendosc oscpack ${LIBS})
2231

2332
INSTALL(TARGETS sendosc RUNTIME DESTINATION bin)
2433

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)