I built this C++ executable using CMake 3.10.2 in Ubuntu 18.04 and it was
built
successfully using the first approach. I'm now trying to build it using the
same CMakeLists.txt and
folder structure in Android Studio which is also using CMake 3.10.2, this
time a library not an executable, that being
To correct myself:
On 20.06.19 00:48, Eric Dönges wrote:
>
> target_link_libraries (main
> build/src/libyaracpp.a
> build/deps/yara/src/yara/libyara/.libs/libyara.a
> yaracpp yara pthread ssl crypto)
>
This of course should be
target_link_libraries (main
On 19.06.19 15:36, dexter810 wrote:
> *Approach 1:*
> CMakeLists.txt:
>
> cmake_minimum_required(VERSION 3.6)
> project(main CXX C)
>
> add_executable(main main.cpp)
>
> target_include_directories(main PRIVATE
> include build/deps/yara/src/yara/libyara/include)
>
>
>
*Approach 1:*
CMakeLists.txt:
cmake_minimum_required(VERSION 3.6)
project(main CXX C)
add_executable(main main.cpp)
target_include_directories(main PRIVATE
include build/deps/yara/src/yara/libyara/include)
target_link_libraries (main
-Lbuild/src/
On 19.06.19 12:42, dexter810 wrote:
> cmake_minimum_required(VERSION 3.6)
> project(main CXX C)
>
> add_executable(main main.cpp)
>
> set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Iinclude
> -Ibuild/deps/yara/src/yara/libyara/include -Lbuild/src
> -Lbuild/deps/yara/src/yara/libyara/.libs/")
>
>
>
This is the program I want to run, main.cpp:
#include
#include "yaracpp/yaracpp.h"
int main() {
yaracpp::YaraDetector yara;
yara.addRules(R"(
rule example {
strings:
$s = "Hello"
condition:
$s
})");
if