Merge pull request #506 from andrewcsmith/patch-2
[supercollider.git] / editors / sced / scedwin / CMakeLists.txt
blob4b4ff6f5ea5b1a4a29082f3e0a780de0704ca3c6
1 set(PYTHON_INCLUDE_DIR "C:/Python26/include")
2 set(PYTHON_LIB_DIR "C:/Python26/libs")
3 #set(PYTHON_LIBRARY "C:/Python26/libs/python26.lib")
4 set(PYTHON_LIBRARY "C:/root/lib/python26.dll")
6 set( pipe_util_src ext/pipe_util.cpp )
8 include_directories( ${PYTHON_INCLUDE_DIR} )
9 #link_directories( "C:/mingw/lib/gcc/mingw32/4.6.2/" )
11 add_library(pipe_util MODULE ${pipe_util_src})
12 set_target_properties( pipe_util PROPERTIES
13     #COMPILE_FLAGS "-specs=${CMAKE_CURRENT_SOURCE_DIR}/cppspecs -static-libstdc++ -static-libgcc"
14     LINK_FLAGS "-specs=${CMAKE_CURRENT_SOURCE_DIR}/ext/cppspecs -static-libstdc++ -static-libgcc"
15     PREFIX ""
16     OUTPUT_NAME pipe_util
17     SUFFIX ".pyd"
20 #set_target_properties( scedlib
21 #    PROPERTIES LINK_FLAGS "-LC:/mingw/lib/gcc/mingw32/4.6.2/" )
23 target_link_libraries( pipe_util ${PYTHON_LIBRARY} )
25 set( GEDIT_DIR gedit )
26 set( GEDIT_PLUGINS_DIR ${GEDIT_DIR}/lib/gedit-2/plugins )
28 install( TARGETS pipe_util DESTINATION ${GEDIT_PLUGINS_DIR}/sced )
30 install( DIRECTORY py/ DESTINATION ${GEDIT_PLUGINS_DIR}/sced )
32 install( DIRECTORY ${PROJECT_SOURCE_DIR}/external_libraries/simplejson-2.3.2/
33     DESTINATION ${GEDIT_PLUGINS_DIR}/sced/simplejson )
35 install( FILES ../data/sced.gedit-plugin DESTINATION ${GEDIT_PLUGINS_DIR} )
37 install( FILES ../data/supercollider.lang
38     DESTINATION ${GEDIT_DIR}/share/gtksourceview-2.0/language-specs )