Skip to content

Commit

Permalink
j.route windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Feb 24, 2015
1 parent 37fd553 commit 62f87f0
Showing 1 changed file with 3 additions and 30 deletions.
33 changes: 3 additions & 30 deletions source/j.route/CMakeLists.txt
Expand Up @@ -6,35 +6,8 @@ set(PROJECT_SRCS

# For some reason, this one won't link with maxcrt / maxcrt_p and complain about symbols defined twice.
# TODO this need more investigation.
if(NOT WIN32)
include(${CMAKE_CURRENT_SOURCE_DIR}/../../Shared/Cmake/MaxExternalCommon.cmake)
else()
set(PROJECT_SRCS
${PROJECT_SRCS}
${CMAKE_CURRENT_SOURCE_DIR}/../c74support/max-includes/common/commonsyms.cpp
)

include_directories("${PROJECT_SOURCE_DIR}/../../../../Core/Modular/library/PeerObject")
include_directories("${PROJECT_SOURCE_DIR}/../../../../Core/Modular/library/ModularForMax")
include_directories("${PROJECT_SOURCE_DIR}/../../../../Core/Modular/library/SchedulerLib")
include_directories("${PROJECT_SOURCE_DIR}/../../../../Core/Modular/library/ProtocolLib")
include_directories("${PROJECT_SOURCE_DIR}/../classwrapper")
if(APPLE)
include_directories("${FILE_H_DIR}")
endif()
addMaxsupport()

add_library(${PROJECT_NAME} SHARED ${PROJECT_SRCS})

target_link_libraries(${PROJECT_NAME} Foundation)
target_link_libraries(${PROJECT_NAME} Modular)

target_link_libraries(${PROJECT_NAME} ${MaxAPI_LIB})
target_link_libraries(${PROJECT_NAME} ${MaxAudio_LIB})
target_link_libraries(${PROJECT_NAME} ${Jitter_LIB})

### Tests ###
addTestTarget()

endif()
include(${CMAKE_CURRENT_SOURCE_DIR}/../../Shared/Cmake/MaxExternalCommon.cmake)



0 comments on commit 62f87f0

Please sign in to comment.