File: CMakeLists.txt

package info (click to toggle)
yaramod 3.6.0-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,924 kB
  • sloc: cpp: 52,237; python: 2,921; ansic: 71; sh: 70; makefile: 41
file content (28 lines) | stat: -rw-r--r-- 544 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
##
## CMake build script for the yaramod tests.
##

# Source files.
set(SOURCES
	tokenstream_tests.cpp
	representation_tests.cpp
	builder_tests.cpp
	parser_tests.cpp
	trie_tests.cpp
	utils_tests.cpp
	yaramod_tests.cpp
)

if(NOT TARGET yaramod_tests)
	find_package(Threads REQUIRED)
	find_package(GTest REQUIRED)

	# Executable.
	add_executable(yaramod_tests ${SOURCES})

	# Linking.
	target_link_libraries(yaramod_tests yaramod GTest::Main)

	# Includes.
	target_include_directories(yaramod_tests PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}")
endif()