CMakeLists.txt 1.93 KB
Newer Older
Sylvain Thery's avatar
Sylvain Thery committed
1 2 3 4 5
cmake_minimum_required(VERSION 2.8)

project(SandBox)


Sylvain Thery's avatar
Sylvain Thery committed
6 7
#SET (CMAKE_BUILD_TYPE Debug)
#SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DNOTOPOWARNING")
Sylvain Thery's avatar
Sylvain Thery committed
8

Sylvain Thery's avatar
Sylvain Thery committed
9 10 11
include_directories(${CMAKE_CURRENT_BINARY_DIR})
#	${CGoGN_ROOT_DIR}/include
#	${CGoGN_EXT_INCLUDES})
Sylvain Thery's avatar
Sylvain Thery committed
12 13

# define libs path
Sylvain Thery's avatar
Sylvain Thery committed
14 15 16 17 18 19
#IF(WIN32)
#	link_directories(${CGoGN_ROOT_DIR}/lib/$(ConfigurationName)
#	${Boost_LIBRARY_DIRS})
#ELSE(WIN32)
#	link_directories(${CGoGN_ROOT_DIR}/lib/Release ${CGoGN_ROOT_DIR}/lib/Debug)
#ENDIF(WIN32)
Sylvain Thery's avatar
Sylvain Thery committed
20 21 22 23


#define exec to compile

Lionel Untereiner's avatar
Lionel Untereiner committed
24
add_executable(multi_att multi_att.cpp)
Sylvain Thery's avatar
Sylvain Thery committed
25
target_link_libraries(multi_att ${CGoGN_LIBS} ${CGoGN_EXT_LIBS})
Lionel Untereiner's avatar
Lionel Untereiner committed
26

27 28 29
add_executable(trav3_test trav3_test.cpp)
target_link_libraries(trav3_test ${CGoGN_LIBS} ${CGoGN_EXT_LIBS})

Sylvain Thery's avatar
Sylvain Thery committed
30 31 32 33
IF (WITH_QT)
	QT4_WRAP_CPP(tilings_moc tilings.h)
	add_executable(tilings tilings.cpp  ${tilings_moc})
	target_link_libraries(tilings ${CGoGN_LIBS} ${CGoGN_EXT_LIBS})
Sylvain Thery's avatar
Sylvain Thery committed
34

Sylvain Thery's avatar
Sylvain Thery committed
35 36 37 38
	QT4_WRAP_UI( test_traversor2_ui test_traversor2.ui )
	QT4_WRAP_CPP(test_traversor2_moc test_traversor2.h)
	add_executable(test_traversor2 test_traversor2.cpp  ${test_traversor2_ui} ${test_traversor2_moc})
	target_link_libraries(test_traversor2 ${CGoGN_LIBS} ${CGoGN_EXT_LIBS})
Sylvain Thery's avatar
Sylvain Thery committed
39 40


Sylvain Thery's avatar
Sylvain Thery committed
41 42 43 44
	QT4_WRAP_UI( testPlaneCutting_ui testPlaneCutting.ui )
	QT4_WRAP_CPP(testPlaneCutting_moc testPlaneCutting.h)
	add_executable(testPlaneCutting testPlaneCutting.cpp  ${testPlaneCutting_ui} ${testPlaneCutting_moc})
	target_link_libraries(testPlaneCutting ${CGoGN_LIBS} ${CGoGN_EXT_LIBS})
45

Sylvain Thery's avatar
Sylvain Thery committed
46 47 48 49 50
	QT4_WRAP_CPP(wallPaper_moc wallPaper.h)
	add_executable(wallPaper wallPaper.cpp  ${wallPaper_moc})
	target_link_libraries(wallPaper ${CGoGN_LIBS} ${CGoGN_EXT_LIBS})

ENDIF()
Sylvain Thery's avatar
Sylvain Thery committed
51

Sylvain Thery's avatar
Sylvain Thery committed
52 53 54 55
# Example with Qt
#
#QT4_WRAP_CPP(tuto1_moc tuto1.h)
#add_executable( tuto1 tuto1.cpp ${tuto1_moc})
Sylvain Thery's avatar
Sylvain Thery committed
56
#target_link_libraries( tuto1 ${CGoGN_LIBS}  ${CGoGN_EXT_LIBS} )
Sylvain Thery's avatar
Sylvain Thery committed
57 58 59 60 61


#QT4_WRAP_CPP(tuto_mt_moc tuto_mt.h)
#add_executable( tuto_mt tuto_mt.cpp  ${tuto_mt_moc})
#target_link_libraries( tuto_mt
Sylvain Thery's avatar
Sylvain Thery committed
62
#	${CGoGN_LIBS} ${CGoGN_EXT_LIBS} ${Boost_THREAD_LIBRARY})
Sylvain Thery's avatar
Sylvain Thery committed
63