-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
50 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
cmake_minimum_required(VERSION 3.1) | ||
project(PackageTest CXX) | ||
project(test_package LANGUAGES C) | ||
|
||
find_package(libsvm CONFIG REQUIRED) | ||
|
||
add_executable(test_package test_package.cpp) | ||
add_executable(test_package test_package.c) | ||
target_link_libraries(test_package PRIVATE libsvm::libsvm) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#include <svm/svm.h> | ||
|
||
#include <stdio.h> | ||
#include <stdlib.h> | ||
|
||
struct svm_parameter param; | ||
|
||
int main(int argc, char **argv) | ||
{ | ||
param.svm_type = C_SVC; | ||
param.kernel_type = PRECOMPUTED; | ||
|
||
//Allocate some dummy data | ||
param.weight = (double*)malloc(10 * sizeof(double)); | ||
svm_destroy_param(¶m); | ||
|
||
printf("libsvm version %d test_package OK \n", LIBSVM_VERSION); | ||
return 0; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
cmake_minimum_required(VERSION 3.1) | ||
project(PackageTest CXX) | ||
project(test_package) | ||
|
||
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake) | ||
conan_basic_setup(TARGETS) | ||
|
||
find_package(libsvm CONFIG REQUIRED) | ||
|
||
add_executable(test_package ../test_package/test_package.cpp) | ||
target_link_libraries(test_package PRIVATE libsvm::libsvm) | ||
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/../test_package | ||
${CMAKE_CURRENT_BINARY_DIR}/test_package) |