mirror of https://gitlab.com/cppit/jucipp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
662 B
20 lines
662 B
#include <glib.h> |
|
#include "cmake.h" |
|
#include "project_build.h" |
|
#include <boost/filesystem.hpp> |
|
|
|
int main() { |
|
auto tests_path=boost::filesystem::canonical(JUCI_TESTS_PATH); |
|
|
|
CMake cmake(tests_path); |
|
|
|
g_assert(cmake.project_path==boost::filesystem::canonical(tests_path/"..")); |
|
|
|
auto functions_parameters=cmake.get_functions_parameters("project"); |
|
g_assert(functions_parameters.at(0).second.at(0)=="juci"); |
|
|
|
g_assert(cmake.get_executable(boost::filesystem::path(JUCI_TESTS_PATH)/"cmake_test.cc").filename()=="cmake_test"); |
|
|
|
auto build=Project::Build::create(JUCI_TESTS_PATH); |
|
g_assert(dynamic_cast<Project::CMakeBuild*>(build.get())); |
|
}
|
|
|