~kicad-product-committers/kicad/kicad-gal

« back to all changes in this revision

Viewing changes to gal/test/CMakeLists.txt

  • Committer: torstenhtr at gmx
  • Date: 2012-08-04 14:55:55 UTC
  • Revision ID: torstenhtr@gmx.de-20120804145555-jbm9k193p1tth439
Cleaned up the files.
Repaired and improved the test examples.
Added the wxDC backend.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
#message( "test: ${CMAKE_CURRENT_SOURCE_DIR}/rubberbanding" )
3
 
#include_directories( "${CMAKE_CURRENT_SOURCE_DIR}/rubberbanding" )
4
 
 
5
 
set(SRCS2
6
 
    rubberbanding/board_item.h
7
 
    rubberbanding/board_item.cpp
8
 
    rubberbanding/component.h
9
 
    rubberbanding/component.cpp
10
 
    rubberbanding/layer.h
11
 
    rubberbanding/pad.h
12
 
    rubberbanding/pad.cpp
13
 
    rubberbanding/track.h
14
 
    rubberbanding/track.cpp
15
 
    rubberbanding/test_rubberbanding.cpp
16
 
    )
17
 
 
18
 
 
19
 
add_executable( test_rubberbanding EXCLUDE_FROM_ALL ${SRCS2} )
20
 
 
 
1
IF( WIN32 )
 
2
    SET( WIN_LIBS -L$ENV{GTK_LIB_DIR}
 
3
                  -L$ENV{GLEW_LIB_DIR}
 
4
                  -lcairo
 
5
                  -lglew32 )
 
6
ENDIF()
 
7
 
 
8
add_executable( test_gal gal/test_gal.cpp )
 
9
target_link_libraries( test_gal gal 
 
10
                       ${wxWidgets_LIBRARIES}
 
11
                       ${OPENGL_LIBRARY}
 
12
                       ${WIN_LIBS}
 
13
                       ${GLEW_LIBRARIES} )
 
14
 
 
15
set( SRCS2
 
16
     rubberbanding/board_item.h
 
17
     rubberbanding/board_item.cpp
 
18
     rubberbanding/component.h
 
19
     rubberbanding/component.cpp
 
20
     rubberbanding/layer.h
 
21
     rubberbanding/pad.h
 
22
     rubberbanding/pad.cpp
 
23
     rubberbanding/track.h
 
24
     rubberbanding/track.cpp
 
25
     rubberbanding/test_rubberbanding.cpp )
 
26
 
 
27
add_executable( test_rubberbanding ${SRCS2} )
21
28
target_link_libraries( test_rubberbanding
22
 
    gal
23
 
    ${wxWidgets_LIBRARIES}
24
 
    ${CAIRO_LIBRARIES}
25
 
    ${GLEW_LIBRARIES}
26
 
    )
 
29
                       gal
 
30
                       ${wxWidgets_LIBRARIES}
 
31
                       ${CAIRO_LIBRARIES}
 
32
                       ${GLEW_LIBRARIES}
 
33
                       ${OPENGL_LIBRARY}
 
34
                       ${WIN_LIBS} )
27
35
 
28
36
add_executable( test_shader shader/test_shader.cpp )
29
 
target_link_libraries(  test_shader 
30
 
                                                gal 
31
 
                                                ${wxWidgets_LIBRARIES} 
32
 
                                                ${CAIRO_LIBRARIES} 
33
 
                                                ${GLEW_LIBRARIES} 
34
 
                                         ) 
 
37
target_link_libraries( test_shader 
 
38
                       gal
 
39
                       ${wxWidgets_LIBRARIES} 
 
40
                       ${CAIRO_LIBRARIES} 
 
41
                       ${GLEW_LIBRARIES} 
 
42
                       ${OPENGL_LIBRARY} 
 
43
                       ${WIN_LIBS} )
 
44