root/lang/objective-cplusplus/i3/trunk/am/mil_test.am @ 34448

Revision 34448, 2.1 kB (checked in by saturday06, 5 years ago)

developm

  • Property svn:executable set to *
Line 
1# ---------------------------------------
2# Common
3
4mil_test_exe  : mil_test${EXEEXT} # for IDE
5
6mil_test_SOURCES = \
7src/mil/src/TestMain.cpp \
8src/mil/src/StaticData.cpp \
9src/mil/src/Test2.cpp \
10src/mil/src/Test3.cpp \
11src/mil/src/Test4.cpp \
12src/mil/src/Test6.cpp \
13src/mil/src/Test7.cpp \
14src/mil/src/Test8.cpp \
15src/mil/src/Test9.cpp
16
17
18# src/mil/src/BoostTestDummyLib.cpp
19
20
21
22mil_test_CXXFLAGS = ${i3_CXXFLAGS} \
23                    ${WARNING_OPTIONS} \
24                    -I${top_srcdir}/src/mil/include
25
26mil_test_LDFLAGS  = ${PTHREAD_LIBS} ${BOOST_LDFLAGS}
27mil_test_LDADD    = #${BOOST_UNIT_TEST_FRAMEWORK_LIB}
28
29if WITH_OS_WINDOWS
30mil_test_CXXFLAGS  += -DMIL_OS_WINDOWS
31else
32mil_test_CXXFLAGS  += -DMIL_OS_UNIX
33endif
34
35if WITH_GUI_WINDOWS
36mil_test_SOURCES  += src/mil/src/windows/WindowProcedureTest.cpp
37mil_test_LDADD    += -lgdi32 -luser32 -lpsapi -lshlwapi
38endif
39
40if WITH_GUI_COCOA
41mil_test_SOURCES  += src/mil/include/mil/StaticDataObjc.m
42endif
43
44if WITH_CYGWIN
45# for cygwin boost/test/included/unit_test.hpp
46mil_test_CXXFLAGS += -DBOOST_DISABLE_WIN32
47mil_test_LDFLAGS  += -Wl,--enable-auto-import
48endif
49
50if ENABLE_DEBUG
51run.mil_test : gch mil_test_exe
52        rm -f gmon.out
53        sh scripts/clean_gcov.sh
54        ./mil_test
55        sh scripts/lcov.sh
56
57mil_test_CXXFLAGS += -D_DEBUG
58else
59mil_test_CXXFLAGS += -DNDEBUG
60endif
61
62#
63# Precompiled Headers
64#
65
66if ENABLE_DEBUG
67if USE_GCC_PRECOMPILED_HEADER
68CLEANFILES += src/mil/include/mil/PrecompiledHeaders.h.gch
69gch_files  += src/mil/include/mil/PrecompiledHeaders.h.gch
70endif
71endif
72
73src/mil/include/mil/PrecompiledHeaders.h.gch: \
74            ${top_srcdir}/src/mil/include/mil/PrecompiledHeaders.h \
75            ${top_srcdir}/src/mil/include/mil/os-windows/PrecompiledHeaders.h \
76            ${top_srcdir}/src/mil/include/mil/os-unix/PrecompiledHeaders.h \
77            ${top_srcdir}/src/mil/include/mil/gui-windows/PrecompiledHeaders.h \
78            ${top_srcdir}/src/mil/include/mil/gui-cocoa/PrecompiledHeaders.h
79
80        $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
81        $(AM_CPPFLAGS) $(CPPFLAGS) $(mil_test_CXXFLAGS) \
82        $(CXXFLAGS_NO_LANG) -x ${GCH_LANG} ${top_srcdir}/src/mil/include/mil/PrecompiledHeaders.h -c
83
Note: See TracBrowser for help on using the browser.