Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - avraal

#1
Installation help / Cmake can't find TGUI
09 October 2018, 01:12:40
Hi,
I'm use CLion on Windows, and i want in tgui, but my cmake can't find him


cmake_minimum_required(VERSION 3.12)
project(testSFML)

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake_modules" ${CMAKE_MODULE_PATH})

add_executable(testSFML main.cpp)

include_directories(D:/Andrew/Resources/SFML/include)
link_directories(D:/Andrew/Resources/SFML/lib)
include_directories(D:/Andrew/Resources/TGUI/include)
link_directories(D:/Andrew/Resources/TGUI/lib)

find_package(SFML REQUIRED COMPONENTS system window graphics network audio)
find_package(TGUI REQUIRED)

if(NOT SFML_FOUND)
    message(FATAL_ERROR "Could not find SFML")
endif()

if(NOT TGUI_FOUND)
    message(FATAL_ERROR "CMake couldn't find TGUI. Set the TGUI_ROOT entry to TGUI's root directory (containing \"include\" and \"lib\" directories).")
endif()


include_directories(${SFML_INCLUDE_DIR})
target_link_libraries(testSFML ${TGUI_LIBRARY})
target_link_libraries(testSFML tgui sfml-system sfml-window sfml-graphics sfml-network sfml-audio)

And i have error:
QuoteCMake Error at CMakeLists.txt:15 (find_package): By not providing "FindTGUI.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "TGUI", but CMake did not find one.

Where i can find FindTGUI.cmake?
#2
Hi
I'm added ChildWindow at other GUI-elements, and i want to forbidden change position for him. Can i "freeze" his?