project(scn2pml)

set(scn2pml_LIBRARIES
  ${MML_LIBRARIES}
  monitoring
)

set(HEADERS
)

set(SRCS
  scn2pml.cpp
  ${HEADERS}
)

if(MML_SOFA_SUPPORT)
	#FIXME Sofa support => fix sofa dependency properly
	if(WIN32)
		set(MML_SOFA_LIB_DIR ${MML_SOFA_DIR}/lib/win32/ReleaseVC9 ${MML_SOFA_DIR}/lib/win32 ${MML_SOFA_DIR}/lib ${MML_SOFA_DIR}/bin)
	else()
		set(MML_SOFA_LIB_DIR ${MML_SOFA_DIR}/lib/linux ${MML_SOFA_DIR}/lib)
	endif()
	link_directories(${MML_SOFA_LIB_DIR})

	set(MML_SOFA_INCLUDE_DIR ${MML_SOFA_DIR}/include ${MML_SOFA_DIR}/modules ${MML_SOFA_DIR}/framework
	${MML_SOFA_DIR}/extlibs/miniBoost ${MML_SOFA_DIR}/include/modules
	${MML_SOFA_DIR}/include/framework ${MML_SOFA_DIR}/include/extlibs/miniBoost )
endif(MML_SOFA_SUPPORT)

include_directories(${MML_INCLUDE_DIRECTORIES} ${MML_SOFA_INCLUDE_DIR})

link_directories(${scn2pml_link})

add_executable(scn2pml ${SRCS})

target_link_libraries(scn2pml ${scn2pml_LIBRARIES})

add_custom_target(scn2pmlBin ALL)

add_dependencies(scn2pml monitoring)
