~azzar1/unity/fix-1036231-5.0

« back to all changes in this revision

Viewing changes to tests/unit/CMakeLists.txt

Add first bits of unity teshhhhhhting

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# Unit tests
 
3
#
 
4
find_package (PkgConfig)
 
5
pkg_check_modules (TEST_UNIT_DEPS REQUIRED ${UNITY_PLUGIN_DEPS})
 
6
 
 
7
set (CFLAGS ${TEST_UNIT_DEPS_CFLAGS} ${TEST_UNIT_DEPS_CFLAGS_OTHER})
 
8
add_definitions (${CFLAGS})
 
9
 
 
10
set (LIBS ${TEST_UNIT_DEPS_LIBRARIES})
 
11
link_libraries (${LIBS})
 
12
 
 
13
set (LIB_PATHS ${TEST_UNIT_DEPS_LIBRARY_DIRS})
 
14
link_directories (${LIB_PATHS})
 
15
 
 
16
include_directories (. .. ../../src)
 
17
 
 
18
# We can't have convenience libs so we need to rebuild with what we need
 
19
add_executable (test-unit
 
20
                test-unit.cpp)